DEV Community

Pragatheeswaran
Pragatheeswaran

Posted on

every() new method in javascript

every()

const nums =[11,12,13,24];
const nums2= [0,-8,9,-7];

nums.every(value => value > 0);

//return true

nums2.every(value => value > 0);

//return false

Top comments (0)