diff options
author | Florian Dold <florian.dold@gmail.com> | 2017-05-24 15:10:37 +0200 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2017-05-24 15:11:17 +0200 |
commit | 7a3df06eb573d36142bd1a8e03c5ce8752d300b3 (patch) | |
tree | 70bfaea8884c374876f607774850a3a51c0cb381 /node_modules/async/doWhilst.js | |
parent | aca1143cb9eed16cf37f04e475e4257418dd18ac (diff) |
fix build issues and add typedoc
Diffstat (limited to 'node_modules/async/doWhilst.js')
-rw-r--r-- | node_modules/async/doWhilst.js | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/node_modules/async/doWhilst.js b/node_modules/async/doWhilst.js index 0a410bfce..d93511314 100644 --- a/node_modules/async/doWhilst.js +++ b/node_modules/async/doWhilst.js @@ -9,9 +9,9 @@ var _noop = require('lodash/noop'); var _noop2 = _interopRequireDefault(_noop); -var _rest = require('./internal/rest'); +var _slice = require('./internal/slice'); -var _rest2 = _interopRequireDefault(_rest); +var _slice2 = _interopRequireDefault(_slice); var _onlyOnce = require('./internal/onlyOnce'); @@ -48,11 +48,12 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de function doWhilst(iteratee, test, callback) { callback = (0, _onlyOnce2.default)(callback || _noop2.default); var _iteratee = (0, _wrapAsync2.default)(iteratee); - var next = (0, _rest2.default)(function (err, args) { + var next = function (err /*, ...args*/) { if (err) return callback(err); + var args = (0, _slice2.default)(arguments, 1); if (test.apply(this, args)) return _iteratee(next); callback.apply(null, [null].concat(args)); - }); + }; _iteratee(next); } module.exports = exports['default'];
\ No newline at end of file |