aboutsummaryrefslogtreecommitdiff
path: root/node_modules/async/doWhilst.js
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2016-11-03 01:33:53 +0100
committerFlorian Dold <florian.dold@gmail.com>2016-11-03 01:33:53 +0100
commitd1291f67551c58168af43698a359cb5ddfd266b0 (patch)
tree55a13ed29fe1915e3f42f1b1b7038dafa2e975a7 /node_modules/async/doWhilst.js
parentd0a0695fb5d34996850723f7d4b1b59c3df909c2 (diff)
node_modules
Diffstat (limited to 'node_modules/async/doWhilst.js')
-rw-r--r--node_modules/async/doWhilst.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/node_modules/async/doWhilst.js b/node_modules/async/doWhilst.js
index a683bb6ec..088b2cf0e 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('lodash/rest');
+var _baseRest = require('lodash/_baseRest');
-var _rest2 = _interopRequireDefault(_rest);
+var _baseRest2 = _interopRequireDefault(_baseRest);
var _onlyOnce = require('./internal/onlyOnce');
@@ -35,8 +35,8 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
* passes. The function is passed a `callback(err)`, which must be called once
* it has completed with an optional `err` argument. Invoked with (callback).
* @param {Function} test - synchronous truth test to perform after each
- * execution of `iteratee`. Invoked with Invoked with the non-error callback
- * results of `iteratee`.
+ * execution of `iteratee`. Invoked with the non-error callback results of
+ * `iteratee`.
* @param {Function} [callback] - A callback which is called after the test
* function has failed and repeated execution of `iteratee` has stopped.
* `callback` will be passed an error and any arguments passed to the final
@@ -44,7 +44,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
*/
function doWhilst(iteratee, test, callback) {
callback = (0, _onlyOnce2.default)(callback || _noop2.default);
- var next = (0, _rest2.default)(function (err, args) {
+ var next = (0, _baseRest2.default)(function (err, args) {
if (err) return callback(err);
if (test.apply(this, args)) return iteratee(next);
callback.apply(null, [null].concat(args));