Function isNumber

  • Returns whether the payload is a number (but not NaN)

    This will return false for NaN!!

    Parameters

    • payload: unknown

    Returns payload is number