These days you could actually use Array.prototype.some
(specced in ES5) to get the same effect:
array.some(function(item) {
return notValid(item);
});
These days you could actually use Array.prototype.some
(specced in ES5) to get the same effect:
array.some(function(item) {
return notValid(item);
});