NumberFormatintermediateconst 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.