2022-01-21 08:28:41 +00:00
|
|
|
"use strict";
|
|
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
2022-06-08 10:36:39 +00:00
|
|
|
exports.partition = void 0;
|
2022-01-21 08:28:41 +00:00
|
|
|
var not_1 = require("../util/not");
|
|
|
|
var filter_1 = require("./filter");
|
|
|
|
function partition(predicate, thisArg) {
|
2022-06-08 10:36:39 +00:00
|
|
|
return function (source) {
|
|
|
|
return [filter_1.filter(predicate, thisArg)(source), filter_1.filter(not_1.not(predicate, thisArg))(source)];
|
|
|
|
};
|
2022-01-21 08:28:41 +00:00
|
|
|
}
|
|
|
|
exports.partition = partition;
|
|
|
|
//# sourceMappingURL=partition.js.map
|