JavaScript Allongé, the "Six" Edition (2019)
github.com
github.com
I'd much prefer to have the simple and good implementation, or one that starts out simple and works towards complexity based on explicit optimization tradeoffs, but that would appear to be outside of the scope of the book.
You wouldn’t use the quicksort from your textbook in production because it’s an example designed to teach specific principles. A complete tour of the literature on just that one story and all its variants and implications be a decent sized book all by itself.
Likewise, the examples inJS Allonge are vehicles to explore functional concepts.
I’d also note that there’s a PDF available for free.
That said, being annoyingly cock-sure when you have the chops to back it up with an actual ideal solution is one thing, the same attitude when you present a questionably engineered algorithm and blatantly disregard its drawbacks (up to ~2x higher runtime / more "reads" needed to generate an answer) by implying only the less intelligent "non-artisans" would ever fail to appreciate it is entirely different.
JavaScript Allongé is free - https://news.ycombinator.com/item?id=6476337 - Oct 2013 (51 comments)
I read the first edition way back when, and thoroughly enjoyed it.