areEqualAllowUndefined MethodStatic
Return
- true if both values are defined and equal (with ===).
- false if both defined by not equal
- return (option arg) resultIfBothUndefined when both are undefined.
- return false if one is defined and the other undefined
areEqualAllowUndefined<T>(a: undefined | T, b: undefined | T, resultIfBothUndefined: boolean = true): boolean
Parameter | Type | Description |
---|---|---|
a | undefined | T | first value |
b | undefined | T | second value |
resultIfBothUndefined | boolean | return value when both are undefined. |
Returns - boolean
Defined in
- Geometry.ts Line 922
Last Updated: 30 November, 2023