partition.js 289 B

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