Skip to content

True Myth / maybe / NarrowingPredicate

Type Alias: NarrowingPredicate<T, U> ​

NarrowingPredicate<T, U> = (element, index, array) => element is U

Type Parameters ​

T ​

T

U ​

U extends T

Parameters ​

element ​

T

index ​

number

array ​

AnyArray<T>

Returns ​

element is U