summaryrefslogtreecommitdiff
path: root/bin/wiki/ImportarDesdeURL/node_modules/moment/src/lib/utils/map.js
diff options
context:
space:
mode:
Diffstat (limited to 'bin/wiki/ImportarDesdeURL/node_modules/moment/src/lib/utils/map.js')
-rw-r--r--bin/wiki/ImportarDesdeURL/node_modules/moment/src/lib/utils/map.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/bin/wiki/ImportarDesdeURL/node_modules/moment/src/lib/utils/map.js b/bin/wiki/ImportarDesdeURL/node_modules/moment/src/lib/utils/map.js
new file mode 100644
index 00000000..1cbc5639
--- /dev/null
+++ b/bin/wiki/ImportarDesdeURL/node_modules/moment/src/lib/utils/map.js
@@ -0,0 +1,7 @@
+export default function map(arr, fn) {
+ var res = [], i;
+ for (i = 0; i < arr.length; ++i) {
+ res.push(fn(arr[i], i));
+ }
+ return res;
+}