partition.js 329 B

1234567
  1. import { not } from '../util/not';
  2. import { filter } from '../operators/filter';
  3. import { innerFrom } from './innerFrom';
  4. export function partition(source, predicate, thisArg) {
  5. return [filter(predicate, thisArg)(innerFrom(source)), filter(not(predicate, thisArg))(innerFrom(source))];
  6. }
  7. //# sourceMappingURL=partition.js.map