Standard built-ins
Intl.supportedValuesOf()
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
| Name | Type | Description |
|---|---|---|
| key | String | Recognized identifier category. |
Return Value
Array<String>
Sorted supported identifiers.
Working Example
Example Snippetjavascript
console.log(Intl.supportedValuesOf("numberingSystem").includes("latn"));