Skip to content

self-assert / Requirements / differentFrom

Function: differentFrom() ​

differentFrom<ValueType>(forbiddenValue): Predicate<ValueType>

Returns a predicate that checks if the value is not equal to the forbidden value.

Type Parameters ​

Type Parameter
ValueType

Parameters ​

ParameterType
forbiddenValueValueType

Returns ​

Predicate<ValueType>