Replace arrays.some with Array.prototype.some

See #441.
redux
David Majda 8 years ago
parent d162fe1cfc
commit 0059cc3bdd

@ -32,7 +32,7 @@ var asts = {
action: consumesExpression,
sequence: function(node) {
return arrays.some(node.elements, consumes);
return node.elements.some(consumes);
},
labeled: consumesExpression,

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

Loading…
Cancel
Save