A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://www.geeksforgeeks.org/javascript/javascript-intl-collator-resolvedoptions-method/ below:

JavaScript Intl Collator resolvedOptions() Method

JavaScript Intl Collator resolvedOptions() Method

Last Updated : 12 Jul, 2025

The Intl.Collator.prototype.resolvedOptions() method is an inbuilt method in JavaScript that is used to return a new object with properties reflecting the locale and collation options computed during the initialization of this Collator object.
Syntax: 

collator.resolvedOptions()

Parameters: This function does not accept any parameter.

Return value: This method returns a new object with properties reflecting the locale and collation options computed during the initialization of the given Collator object.

The below examples illustrate the in Intl.Collator.prototype.resolvedOptions() Method JavaScript:

Example 1: 

javascript
let vall = new Intl.Collator('de', { sensitivity: 'base' })
let geek = vall.resolvedOptions();

console.log(geek.locale);
console.log(geek.usage);
console.log(geek.sensitivity);
console.log(geek.ignorePunctuation);
console.log(geek.collation);
console.log(geek.numeric); 

Output:  

"de"
"sort"
"base"
false
"default"
false

Example 2:  

javascript
let geek = new Intl.Collator('de-DE');
let geek1 = new Intl.Collator('ar');
let geek2 = new Intl.Collator('hi');
let val1 = geek.resolvedOptions();
let val2 = geek1.resolvedOptions();
let val3 = geek2.resolvedOptions();
console.log(val1.sensitivity);
console.log(val2.collation);
console.log(val3.numeric);

Output: 

"variant"
"default"
false

Supported Browsers: The browsers supported by Intl.Collator.prototype.resolvedOptions() method are listed below: 



RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4