node/rxjs/dist/cjs/internal/operators/partition.js
raw| 1 | "use strict"; |
| 2 | Object.defineProperty(exports, "__esModule", { value: true }); |
| 3 | exports.partition = void 0; |
| 4 | var not_1 = require("../util/not"); |
| 5 | var filter_1 = require("./filter"); |
| 6 | function partition(predicate, thisArg) { |
| 7 | return function (source) { |
| 8 | return [filter_1.filter(predicate, thisArg)(source), filter_1.filter(not_1.not(predicate, thisArg))(source)]; |
| 9 | }; |
| 10 | } |
| 11 | exports.partition = partition; |
| 12 | //# sourceMappingURL=partition.js.map |