The every() method of an array tests whether all elements in the array pass the test implemented by the provided function.

    
    const numbers = [12, 6, 22, 37, 9];

    const every = numbers.every((num) => num < 40);

    console.log(every)
    // true