function findFirstIndexOfNumber(number, array) { for (let i = 0; i < array.length; i++) { if (array[i] === number) { return i; } } return -1 }