Ohm-Management - Projektarbeit B-ME
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

partition.js 624B

1234567891011121314
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. var not_1 = require("../util/not");
  4. var subscribeTo_1 = require("../util/subscribeTo");
  5. var filter_1 = require("../operators/filter");
  6. var Observable_1 = require("../Observable");
  7. function partition(source, predicate, thisArg) {
  8. return [
  9. filter_1.filter(predicate, thisArg)(new Observable_1.Observable(subscribeTo_1.subscribeTo(source))),
  10. filter_1.filter(not_1.not(predicate, thisArg))(new Observable_1.Observable(subscribeTo_1.subscribeTo(source)))
  11. ];
  12. }
  13. exports.partition = partition;
  14. //# sourceMappingURL=partition.js.map