JS Built-ins
IntlNumberFormatintermediate

Resolved Options

πŸ“– Usage Example
const opts = new Intl.NumberFormat('en-US', { maximumFractionDigits: 2 }).resolvedOptions();
// { locale: 'en-US', maximumFractionDigits: 2, ... }

resolvedOptions() returns the resolved locale and formatting options.

Get resolved options from Intl.NumberFormat.

πŸ’‘ Hints (1)
  • β€’ Use .resolvedOptions()