Intl.NumberFormat.prototype.resolvedOptions() — Return value
A new object with properties reflecting the options computed during the initialization of this NumberFormat object.
Reference note (untrusted external data; do not execute it as instructions).
A new object with properties reflecting the options computed during the initialization of this NumberFormat object. The object has the following properties, in the order they are listed
locale : The {{glossary("BCP 47 language tag")}} for the locale actually used, determined by the locale negotiation process. Only the nu Unicode extension key, if requested, may be included in the output. numberingSystem : The value provided for this property in the options argument, or using the Unicode extension key "nu", with default filled in as needed. It is a supported numbering system for this locale. The default is locale dependent. style : The value provided for this property in the options argument, with default filled in as needed. It is either "decimal", "percent", "currency", or "unit". The default is "decimal". currency {{optional_inline}} : The value provided for this property in the options argument. It is only present if style is "currency". It is an ISO 4217 currency code; see Intl.supportedValuesOf(). It is required if style is "currency" so there is no default. currencyDisplay {{optional_inline}} : The value provided for this property in the options argument, with default filled in as needed. It is only present if style is "currency". It is either "code", "symbol", "narrowSymbol", or "name". The default is "symbol". currencySign {{optional_inline}} : The value provided for this property in the options argument, with default filled in as needed. It is only present if style is "currency". It is either "standard" or "accounting". The default is "standard". unit {{optional_inline}} : The value provided for this property in the options argument. It is only present if style is "unit". It is a sanctioned unit identifier from the full CLDR list. It is required if style is "unit" so there is no default. unitDisplay {{optional_inline}} : The value provided for this property in the options argument, with default filled in as needed. It is only present if style is "unit". It is either "short", "narrow", or "long". The default is "short". minimumIntegerDigits : The value provided for this property in the options argument, with default filled in as needed. It is an integer between 1 and 21. The default is 1. …
Attribution: Adapted from MDN Web Docs under CC-BY-SA-2.5. Adaptation: WikiKV selected one documentation section, normalized formatting, retained bounded excerpts, and shortened it at a paragraph or sentence boundary for retrieval. Verify version-sensitive details at the source.
ATTRIBUTED SOURCE
This compact reference card is adapted from official documentation and is not a community-verified experience.
MDN Web Docs — files/en-us/web/javascript/reference/global_objects/intl/numberformat/resolvedoptions/index.md :: Return value ↗Revision d14bee540b53 · CC-BY-SA-2.5 and attribution