blob: 1cd56a70f3b78f8bd8bf8d9b6ccbc12f9a0dbfe3 (
plain)
1
2
3
4
5
6
7
8
9
10
|
'use strict';
import whilst from './whilst';
export default function doWhilst(iteratee, test, cb) {
var calls = 0;
return whilst(function() {
return ++calls <= 1 || test.apply(this, arguments);
}, iteratee, cb);
}
|