var fruits = ["Banana", "Orange", "Apple", "Mango"]; var index = fruits.indexOf("Apple");
let fruits = ["Banana", "Orange", "Apple", "Mango"]; let index = fruits.???
If there is no equivalent, maybe you can point me in the right direction? I found this example , but for vectors, not arrays.
source share