3 ms·
I'm guessing because .and is a function it can be used to pass into any higher order function. var x = [true, false, true, false]; x.reduce(and, true);
by weavie 12y ago
I'm guessing because .and is a function it can be used to pass into any higher order function.
var x = [true, false, true, false];
x.reduce(and, true); // == false
x.reduce(or, false); // == true
- neals 12y agothat makes sense actually. Thanks!