Is there any way to use boolean algebra in JS?
Eg I would like to loop through an array containing true & false, and simplify it down to either only true, or false.
Doing it with boolean algebra seems like an elegant way to do it...
would like to do a comparison that lets me simply add the previous value to the current iteration of a loop
[true, true, true, true] // return true
[false, true, true, true] // return false