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