Answers for "javascrpt find index"

0

javascrpt find index

const numbers = [2, 4, 5, 3, 8, 9, 11, 33, 44];
const findIndex = numbers.findIndex((number) => number == 5);
console.log(findIndex)
//Expected output: 2
Posted by: Guest on September-17-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language