|
|
@ -60,18 +60,6 @@ var arrays = {
|
|
|
|
return array.map(function (e) { return e[key]; });
|
|
|
|
return array.map(function (e) { return e[key]; });
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
every: function(array, predicate) {
|
|
|
|
|
|
|
|
var length = array.length, i;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
for (i = 0; i < length; i++) {
|
|
|
|
|
|
|
|
if (!predicate(array[i])) {
|
|
|
|
|
|
|
|
return false;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return true;
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
some: function(array, predicate) {
|
|
|
|
some: function(array, predicate) {
|
|
|
|
var length = array.length, i;
|
|
|
|
var length = array.length, i;
|
|
|
|
|
|
|
|
|
|
|
|