Last change
on this file since 6c1585f was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
441 bytes
|
Line | |
---|
1 | import { not } from '../util/not';
|
---|
2 | import { subscribeTo } from '../util/subscribeTo';
|
---|
3 | import { filter } from '../operators/filter';
|
---|
4 | import { Observable } from '../Observable';
|
---|
5 | export function partition(source, predicate, thisArg) {
|
---|
6 | return [
|
---|
7 | filter(predicate, thisArg)(new Observable(subscribeTo(source))),
|
---|
8 | filter(not(predicate, thisArg))(new Observable(subscribeTo(source)))
|
---|
9 | ];
|
---|
10 | }
|
---|
11 | //# sourceMappingURL=partition.js.map |
---|
Note:
See
TracBrowser
for help on using the repository browser.