summaryrefslogtreecommitdiff
path: root/lib/internal/eachOfLimit.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/internal/eachOfLimit.js')
-rw-r--r--lib/internal/eachOfLimit.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/internal/eachOfLimit.js b/lib/internal/eachOfLimit.js
index 2928366..1d710dc 100644
--- a/lib/internal/eachOfLimit.js
+++ b/lib/internal/eachOfLimit.js
@@ -6,8 +6,8 @@ import onlyOnce from './onlyOnce';
import breakLoop from './breakLoop';
-export default function _eachOfLimit(limit) {
- return function (obj, iteratee, callback) {
+export default (limit) => {
+ return (obj, iteratee, callback) => {
callback = once(callback || noop);
if (limit <= 0) {
throw new RangeError('concurrency limit cannot be less than 1')