Open SergeyVoloshchuk opened 7 years ago
function indexOf (arr, item) { var index = null; for (var i = 0; i < arr.length; i++) { if (arr[i] === item) { index = i; break; } } if (index) { return index; } return -1; }