- partition<T>(iterable: Iterable<T>, predicate: ((value: T) => boolean)): [trueValues: T[], falseValues: T[]]
-
Parameters
-
iterable: Iterable<T>
-
predicate: ((value: T) => boolean)
-
- (value: T): boolean
-
Returns boolean
Returns [trueValues: T[], falseValues: T[]]