diff --git a/lib/compiler/asts.js b/lib/compiler/asts.js index 90c6a3a..0b1ce44 100644 --- a/lib/compiler/asts.js +++ b/lib/compiler/asts.js @@ -32,7 +32,7 @@ var asts = { action: consumesExpression, sequence: function(node) { - return arrays.some(node.elements, consumes); + return node.elements.some(consumes); }, labeled: consumesExpression, diff --git a/lib/utils/arrays.js b/lib/utils/arrays.js index 2c03705..1ef8106 100644 --- a/lib/utils/arrays.js +++ b/lib/utils/arrays.js @@ -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; } };