javascrpt find index

Solutions on MaxInterview for javascrpt find index by the best coders in the world

showing results for - "javascrpt find index"
Dillon
20 Jan 2016
1
2const numbers = [2, 4, 5, 3, 8, 9, 11, 33, 44];
3const findIndex = numbers.findIndex((number) => number == 5);
4console.log(findIndex)
5//Expected output: 2