Skip to main content

Function: isExpected()

isExpected<T>(expected: T): (actual: T) => boolean

Defined in: util/misc.ts:10

Return a predicate that checks strict equality against an expected value.

Type Parameters​

T​

T

Parameters​

expected​

T

Expected value.

Returns​

Predicate checking whether the provided value equals the expected value.

(actual: T) => boolean