diff options
Diffstat (limited to 'lib/doUntil.js')
-rw-r--r-- | lib/doUntil.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/doUntil.js b/lib/doUntil.js index d823135..01f114c 100644 --- a/lib/doUntil.js +++ b/lib/doUntil.js @@ -19,8 +19,8 @@ import doWhilst from './doWhilst'; * will be passed an error and any arguments passed to the final `fn`'s * callback. Invoked with (err, [results]); */ -export default function doUntil(iteratee, test, cb) { - return doWhilst(iteratee, function() { +export default function doUntil(fn, test, callback) { + doWhilst(fn, function() { return !test.apply(this, arguments); - }, cb); + }, callback); } |