ES6 Array.prototype.findIndex ES6 Array.prototype.find ES6 Array.prototype.entries ES6 Array.prototype.findIndex var numbers = [1, 2, 3]; var oddNumber = numbers.findIndex((x) => x % 2 == 1); console.log(oddNumber); // 0 ES6 Array.prototype.find ES6 Array.prototype.entries