list every function in javascript code example
Example 1: array every javascript
[12, 5, 8, 130, 44].every(elem => elem >= 10); // false
[12, 54, 18, 130, 44].every(elem => elem >= 10); // true
Example 2: every in javascript
let data = [ {status: true}, {status: false}, {status: true} ]
let result = data.every((i) => {
return i.status === true
})
console.log(result) // false