index of a string in an arrrayp jaavascript code example
Example 1: how to get the index of an array in javascript
search = (arr, item) => { return arr.indexOf(item); }
Example 2: indexof javascript
Array.indexOf(searchElement, fromIndex)
search = (arr, item) => { return arr.indexOf(item); }
Array.indexOf(searchElement, fromIndex)