Go to repository
Internal

Function numberEquals

Answer if two numbers are equal. Two numbers are equal if they happen to be the same number, or, if both are NaN.

Parameters

  • a: number

    The first number

  • b: number

    The second number

Returns boolean

true when both numbers are the same, or both are NaN.