areEqualAllowUndefined MethodStatic
Test for match of two values of type T
.
areEqualAllowUndefined<T>(a: T, b: T, resultIfBothUndefined: booleantrue): boolean
@returns true
if both values are defined and equal (with ===) and false
if both values are defined
but not equal or if one is defined and the other undefined.
Parameter | Type | Description |
---|---|---|
a | T | first value |
b | T | second value |
resultIfBothUndefined | boolean | returned value when both are undefined |
Returns - boolean
true
if both values are defined and equal (with ===) and false
if both values are defined
but not equal or if one is defined and the other undefined.
Defined in
- Geometry.ts Line 1288
Last Updated: 14 November, 2024
Found something wrong, missing, or unclear on this page?Raise an issue in our repo.