2 * A specialized version of `_.every` for arrays without support for
6 * @param {Array} [array] The array to iterate over.
7 * @param {Function} predicate The function invoked per iteration.
8 * @returns {boolean} Returns `true` if all elements pass the predicate check,
11 function arrayEvery(array, predicate) {
13 length = array == null ? 0 : array.length;
15 while (++index < length) {
16 if (!predicate(array[index], index, array)) {
23 module.exports = arrayEvery;