javascript all elements in array are true code example
Example: check if all elements in array are true javascript
You can use `every()` array method
let data = [ {status: true}, {status: false}, {status: true} ]
let result = data.every((i) => {
return i.status === true
})
console.log(result) // false
let data = [ {status: true}, {status: true}, {status: true} ]
let result = data.every((i) => {
return i.status === true
})
console.log(result) // true