JS Built-ins
IntlCollatorintermediate

Collator resolvedOptions

πŸ“– Usage Example
const opts = new Intl.Collator('en', { sensitivity: 'base' }).resolvedOptions();
// { locale: 'en', sensitivity: 'base', ... }

resolvedOptions() returns the actual locale and options the collator uses.

Get resolved options from Intl.Collator.

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