如果数组中存在 item,则返回元素在数组中的位置,否则返回 -1
[ 1, 2, 3, 4 ], 3
2
function indexOf(arr, item) { return arr.indexOf(item); }