14 lines
624 B
JavaScript
14 lines
624 B
JavaScript
|
"use strict";
|
||
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||
|
var not_1 = require("../util/not");
|
||
|
var subscribeTo_1 = require("../util/subscribeTo");
|
||
|
var filter_1 = require("../operators/filter");
|
||
|
var Observable_1 = require("../Observable");
|
||
|
function partition(source, predicate, thisArg) {
|
||
|
return [
|
||
|
filter_1.filter(predicate, thisArg)(new Observable_1.Observable(subscribeTo_1.subscribeTo(source))),
|
||
|
filter_1.filter(not_1.not(predicate, thisArg))(new Observable_1.Observable(subscribeTo_1.subscribeTo(source)))
|
||
|
];
|
||
|
}
|
||
|
exports.partition = partition;
|
||
|
//# sourceMappingURL=partition.js.map
|