Standard built-ins

Intl.supportedValuesOf()

Try the free JavaScript compiler

List supported identifiers for specified key such as calendar, currency, numberingSystem or timeZone; not a list of supported locale tags.

Formal Syntax & Structure

javascript syntaxjavascript
Intl.supportedValuesOf(key)

Parameters & Attributes

NameTypeDescription
keyStringRecognized identifier category.

Return Value

Array<String>

Sorted supported identifiers.

Working Example

Example Snippetjavascript
console.log(Intl.supportedValuesOf("numberingSystem").includes("latn"));
JavaScript Reference