mirror of
https://github.com/CharaChorder/DeviceManager.git
synced 2026-01-19 08:22:53 +00:00
7 lines
329 B
JavaScript
7 lines
329 B
JavaScript
import { not } from '../util/not';
|
|
import { filter } from '../operators/filter';
|
|
import { innerFrom } from './innerFrom';
|
|
export function partition(source, predicate, thisArg) {
|
|
return [filter(predicate, thisArg)(innerFrom(source)), filter(not(predicate, thisArg))(innerFrom(source))];
|
|
}
|
|
//# sourceMappingURL=partition.js.map
|