- Preparing search index...
- The search index is not available
Dappetizer
- findNonNullish<TSource, TResult>(sourceItems: Iterable<TSource>, mapItem: ((item: TSource) => undefined | null | TResult)): TResult | null
-
Parameters
-
sourceItems: Iterable<TSource>
-
mapItem: ((item: TSource) => undefined | null | TResult)
-
- (item: TSource): undefined | null | TResult
-
Returns undefined | null | TResult
Returns TResult | null
Returns first mapped item which is not
null
norundefined
. So it does not map all items.