- filterAndMap<T, U, V>(iterable: Iterable<T>, predicate: ((item: T) => item is U), transform: ((item: U) => V)): V[]
-
Parameters
-
iterable: Iterable<T>
-
predicate: ((item: T) => item is U)
-
- (item: T): item is U
-
Returns item is U
-
transform: ((item: U) => V)
Returns V[]
- filterAndMap<T, U>(iterable: Iterable<T>, predicate: ((item: T) => boolean), transform: ((item: T) => U)): U[]
-
Parameters
-
iterable: Iterable<T>
-
predicate: ((item: T) => boolean)
-
- (item: T): boolean
-
Returns boolean
-
transform: ((item: T) => U)
Returns U[]