What is a Comparator in JavaScript? (and why sorting algorithms depend on it)
Last week when I was revising sorting concept in JavaScript, I came across an interesting point - sorting in either ascending or descending order when an array is presented in a mixed case.
We all lik
buggleboy.hashnode.dev7 min read