partition.js 259 B

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