Function determineNumberLocale

  • Determine whether a set of valid number strings are formatted in da-DK or en-US locale.

    Parameters

    • values: Iterable<string>

      An iterable of strings that may or may not be numbers.

    Returns "da" | "en" | undefined

    Remarks

    When encountering a value of which locale cannot be distinguished, it is skipped. As soon as a value is encountered that can be only be from one locale, that locale is immediately returned. If none are encountered, undefined is returned.

    Throws

    TypeError if a value is not a valid number.

Generated using TypeDoc