summaryrefslogtreecommitdiff
path: root/lib/each.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/each.js')
-rw-r--r--lib/each.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/each.js b/lib/each.js
new file mode 100644
index 0000000..384bb0a
--- /dev/null
+++ b/lib/each.js
@@ -0,0 +1,8 @@
+'use strict';
+
+import eachOf from './eachOf';
+import withoutIndex from './internal/withoutIndex';
+
+export default function each(arr, iterator, cb) {
+ return eachOf(arr, withoutIndex(iterator), cb);
+}