javascript lookup in array by indexOf code example Example: js get index of item in array array.indexOf("item");