What the heck is the .localeCompare() method in JavaScript?
I first encountered the .localeCompare() method while doing a Codewars kata that asked you to write a function that first sorted an array of attendee objects by their language key, and if they were the same, then sort by their firstName alphabeticall...
geraldiner.hashnode.dev4 min read