javascript find index of element in node code example Example: js get index of item in array array.indexOf("item");