Array.prototype.indexOf() - frost.cs.uchicago.edu
https://frost.cs.uchicago.edu/ref/JavaScript/developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/indexOf.html
WebThe indexOf() method returns the first index at which a given element can be found in the array, or -1 if it is not present. Note: For the String method, see String.prototype.indexOf(). var beasts = ['ant', 'bison', 'camel', 'duck', 'bison']; console.log(beasts.indexOf('bison')); // expected output: 1. // start from index 2.
DA: 30 PA: 53 MOZ Rank: 94