blob: 31ab25a52706c1a369c156bafd43435fcdef08d4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = doUntil;
var _doWhilst = require('./doWhilst');
var _doWhilst2 = _interopRequireDefault(_doWhilst);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
function doUntil(iterator, test, cb) {
return (0, _doWhilst2.default)(iterator, function () {
return !test.apply(this, arguments);
}, cb);
}
module.exports = exports['default'];
|