Home > rc-js-util > equalityAreConsistentlyDefined
Returns true if both A
and B
are both null, undefined or ‘defined’. Defined is not null and not undefined.
Signature:
export declare function equalityAreConsistentlyDefined<T>(a: T | undefined | null, b: T | undefined | null): boolean;
Parameter | Type | Description |
---|---|---|
a | T | undefined | null | |
b | T | undefined | null |
Returns:
boolean