00001
00011 function arrayEvery(array, predicate) {
00012 var index = -1,
00013 length = array == null ? 0 : array.length;
00014
00015 while (++index < length) {
00016 if (!predicate(array[index], index, array)) {
00017 return false;
00018 }
00019 }
00020 return true;
00021 }
00022
00023 module.exports = arrayEvery;