diff options
Diffstat (limited to 'lib/times.js')
-rw-r--r-- | lib/times.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/times.js b/lib/times.js new file mode 100644 index 0000000..72e844c --- /dev/null +++ b/lib/times.js @@ -0,0 +1,8 @@ +'use strict'; + +import map from './map'; +import range from 'lodash/_baseRange'; + +export default function (count, iterator, callback) { + map(range(0, count, 1), iterator, callback); +} |