Function asNumber

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

  • Parameters

    • x: unknown

    Returns number