Standard built-ins

Intl.Collator.prototype.resolvedOptions()

Try the free JavaScript compiler

Return effective comparison locale, sensitivity, numeric setting and other collation options.

Formal Syntax & Structure

javascript syntaxjavascript
formatter.resolvedOptions()

Return Value

Object

Effective collation settings.

Working Example

Example Snippetjavascript
console.log(new Intl.Collator("en-US",{numeric:true}).resolvedOptions().numeric);
JavaScript Reference