js-util

Home > rc-js-util > equalityAreConsistentlyDefined

equalityAreConsistentlyDefined() function

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;

Parameters

Parameter Type Description
a T | undefined | null  
b T | undefined | null  

Returns:

boolean

Remarks

See equalityAreConsistentlyDefined().