Function: isExpected()
function 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