The findLastIndex() method of an array iterates the array in reverse order and returns the index number of the first no that is true in the provided function. If no elements satisfy the function, -1 is returned.

    
    const numbers = [5, 12, 50, 130, 44];

    const isLarge = (no) => no > 45;

    lastIndexNumber = numbers.findLastIndex(isLarge);

    console.log(lastIndexNumber)
    // 3