pablocattaneo
8/12/2017 - 10:10 PM

Get the index of a element in an array https://www.w3schools.com/JSREF/jsref_indexof_array.asp

Get the index of a element in an array

https://www.w3schools.com/JSREF/jsref_indexof_array.asp

var fruits = ["Banana", "Orange", "Apple", "Mango"];
var a = fruits.indexOf("Apple");