- findOrDefault<T, U>(iterable: Iterable<T>, predicate: ((value: T) => value is U), defaultValue: U): U
-
Parameters
-
iterable: Iterable<T>
-
predicate: ((value: T) => value is U)
-
- (value: T): value is U
-
Returns value is U
-
defaultValue: U
Returns U
- findOrDefault<T>(iterable: Iterable<T>, predicate: ((value: T) => boolean), defaultValue: T): T
-
Parameters
-
iterable: Iterable<T>
-
predicate: ((value: T) => boolean)
-
- (value: T): boolean
-
Returns boolean
-
defaultValue: T
Returns T