partition<T, O>(array, predicate): [IfCouldBe<ValuesType<T>, O, Narrow<ValuesType<T>, O>[], []>, Exclude<ValuesType<T>, O> extends never ? [] : Exclude<ValuesType<T>, O>[]]
Creates an array of elements split into two groups, the first of which contains elements predicate returns truthy for, the second of which contains elements predicate returns falsey for.
Contribution to minified bundle size, when it is the only function imported:
Creates an array of elements split into two groups, the first of which contains elements
predicate
returns truthy for, the second of which contains elementspredicate
returns falsey for.Contribution to minified bundle size, when it is the only function imported: