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...

Markdown supported · ⌘↵ to post
No responses yet.