• Attempt to create a number from a user-provided string.

    Parameters

    • n: string | number

      The value to convert; typically a string, but may already be a number.

    Returns number

    The number that the string represents, or NaN if no number could be determined.

    Memberof

    Number