summaryrefslogtreecommitdiff
path: root/build/modules-es6/until.js
blob: e6c44617260677ca4ea2ae9dc0e5adbb73005c9c (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);
}