indexof js mdn

JavaScript
array.indexOf(searchElement, [initialPoint = 0])

// the indexOf() always returns the first index that the element can be found, else it returns -1
Source

Also in JavaScript: