Skip to content
0

katanakit-js / usePartition

Function: usePartition() ​

ts
function usePartition<T>(array, predicate): [T[], T[]];

Defined in: src/core/services/array.service.ts:484

Splits into [matching, rest]. See ArrayService.usePartition.

Type Parameters ​

Type Parameter
T

Parameters ​

ParameterType
arrayNullableArray<T>
predicatePredicate<T>

Returns ​

[T[], T[]]

Released under the MIT License.