⇐ Home

localecompare "Can I use..." widgets

The localeCompare() method returns a number indicating whether a reference string comes before or after or is the same as the given string in sort order.

What browser do support localecompare widget

Add this code to your website
<script data-feature="localecompare" defer src="https://cdn.caniusewidgets.com/scripts/overviewtable.js"></script>
to display the following widget

How many browsers globally do support localecompare widget

Add this code to your website
<script data-feature="localecompare" defer src="https://cdn.caniusewidgets.com/scripts/browsersupport.js"></script>
to display the following widget

Is localecompare supported in my browser widget

Add this code to your website
<script data-feature="localecompare" defer src="https://cdn.caniusewidgets.com/scripts/single.js"></script>
to display the following widget
caniusewidgets.com/localecompare
Change caniuse.com to caniusewidgets.com to get to this page

Other interesting features:

Give feedback
All feature data is provided by caniuse.com