Sign up to request clarification or add additional context in comments.
Comments
0
You can use Array.prototype.every for this
The every() method tests whether all elements in the array pass the test implemented by the provided function. It returns a Boolean value.
const valid = x.every(item => item.status === true)
if (valid){
// CALL THE METHOD YOU WANT
}