Does localeCompare work on numbers?

As you can see, with the . localeCompare() method (and the numeric option) powering the sort operation, the embedded numbers are now treated as numbers .

Sizin İçin Seçtik  Is JavaScript string comparison case-sensitive?

Leave a Reply

Your email address will not be published. Required fields are marked *