Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add a new utility called ‘some’

  • Loading branch information...
commit 53267f449ae43f6519155bdb16067199b7497710 1 parent c92ed73
@Baggz authored
Showing with 9 additions and 0 deletions.
  1. +9 −0 src/utils/some.js
View
9 src/utils/some.js
@@ -0,0 +1,9 @@
+/**
+ * Some
+ *
+ * @param {object} arr
+ * @param {function} iterator
+ */
+var some = function(arr, iterator) {
+ return Array.prototype.some.apply(arr, [iterator]);
+};
Please sign in to comment.
Something went wrong with that request. Please try again.