From 01160246e4a0c0052181c72a53737e356ea7d02d Mon Sep 17 00:00:00 2001 From: Minteck Date: Sat, 12 Feb 2022 10:33:06 +0100 Subject: First commit --- node_modules/moment/src/lib/utils/map.js | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 node_modules/moment/src/lib/utils/map.js (limited to 'node_modules/moment/src/lib/utils/map.js') diff --git a/node_modules/moment/src/lib/utils/map.js b/node_modules/moment/src/lib/utils/map.js new file mode 100644 index 0000000..027458c --- /dev/null +++ b/node_modules/moment/src/lib/utils/map.js @@ -0,0 +1,8 @@ +export default function map(arr, fn) { + var res = [], + i; + for (i = 0; i < arr.length; ++i) { + res.push(fn(arr[i], i)); + } + return res; +} -- cgit