summaryrefslogtreecommitdiff
path: root/lib/times.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/times.js')
-rw-r--r--lib/times.js8
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/times.js b/lib/times.js
index 72e844c..2cbd230 100644
--- a/lib/times.js
+++ b/lib/times.js
@@ -1,8 +1,6 @@
'use strict';
-import map from './map';
-import range from 'lodash/_baseRange';
+import timesLimit from './timesLimit';
+import doLimit from './internal/doLimit';
-export default function (count, iterator, callback) {
- map(range(0, count, 1), iterator, callback);
-}
+export default doLimit(timesLimit, Infinity);