- findOrThrow<T, U>(iterable: Iterable<T>, predicate: ((value: T) => value is U), message?: string): U
-
Parameters
-
iterable: Iterable<T>
-
predicate: ((value: T) => value is U)
-
- (value: T): value is U
-
Returns value is U
-
Optional
message: string
Returns U
- findOrThrow<T>(iterable: Iterable<T>, predicate: ((value: T) => boolean), message?: string): T
-
Parameters
-
iterable: Iterable<T>
-
predicate: ((value: T) => boolean)
-
- (value: T): boolean
-
Returns boolean
-
Optional
message: string
Returns T