Permalink
Browse files

Add a new utility called ‘every’

  • Loading branch information...
1 parent 62c719f commit b325ab753ebcda71d3c093a7092786d21c704e21 @Baggz committed Mar 12, 2012
Showing with 9 additions and 0 deletions.
  1. +9 −0 src/utils/every.js
View
@@ -0,0 +1,9 @@
+/**
+ * Every
+ *
+ * @param {object} arr
+ * @param {function} iterator
+ */
+var every = function(arr, iterator) {
+ return Array.prototype.every.apply(arr, [iterator]);
+};

0 comments on commit b325ab7

Please sign in to comment.