JS Methods that Blew My Mind - Array.prototype.sort() & String.prototype.localeCompare()
#Array.prototype.sort()
The sort() method sorts the elements of an array in place and returns the reference to the same array, now sorted. compareFn is an optional parameter. When passed in, it specifies a function that defines the sort order. If omi...
bzzz.hashnode.dev4 min read