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