Function toNumber

Returns x if x is a number, NaN and other value will be coerced to undefined.

  • Parameters

    • x: unknown

    Returns undefined | number