I have a list of boolean
let x = [true,false,false,true,false]
I want to return true if at least 1 items is true
i.e. returns a value of false if every value is false
let y = [false,false,false,false,false] // should return false
I can’t seem to understand the use of array.every(function) to return false. It seems simple but I can’t figure the logic