Есть ли способ использовать булеву алгебру в JS?
Например, я хотел бы перебрать массив, содержащий true и false, и упростить его до либо только true, либо false.
Выполнение этого с помощью булевой алгебры кажется элегантным способом сделать это...
[true,true,true,true] //would like to do a comparison that lets me
//simply add the previous value to the current iteration of a loop
// and have this return true
[false,true,true,true]//this on the other hand should return false