How to check if all array items are equal to or greater than N in JavaScript

1 Answer

0 votes
const arr = [12, 9 , 13, 5, 7, 19];

const b = arr.every( n => n >= 7 );

document.write(b);



/*
run:
      
false 
   
*/

 



answered Nov 2, 2019 by avibootz
...