blob: f9ed2fd2fea419f37d37144d151f3f287f42e015 (
plain)
1
2
3
4
5
6
7
8
9
|
'use strict';
import whilst from './whilst';
export default function until(test, iterator, cb) {
return whilst(function() {
return !test.apply(this, arguments);
}, iterator, cb);
}
|