• Returns value as a number if it is a number or string representation of a number, otherwise returns NaN

    Parameters

    • value: unknown

    Returns number