blob: 42a458211ede1dc31b1b1b15e7d64160ff9d91ff [file] [log] [blame]
'use strict';
module.exports = function every(array, predicate) {
for (var i = 0; i < array.length; i += 1) {
if (!predicate(array[i], i, array)) {
return false;
}
}
return true;
};