• Checks if a given value is a number.

    Parameters

    • value: unknown
    • finiteness: boolean = false

      if true, checks if the value is a finite number.

    Returns value is number