aboutsummaryrefslogtreecommitdiffstats
path: root/library/moment/src/test/helpers
diff options
context:
space:
mode:
Diffstat (limited to 'library/moment/src/test/helpers')
-rw-r--r--library/moment/src/test/helpers/each.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/library/moment/src/test/helpers/each.js b/library/moment/src/test/helpers/each.js
new file mode 100644
index 000000000..7ade6b308
--- /dev/null
+++ b/library/moment/src/test/helpers/each.js
@@ -0,0 +1,8 @@
+function each(array, callback) {
+ var i;
+ for (i = 0; i < array.length; i++) {
+ callback(array[i], i, array);
+ }
+}
+
+export default each;