> No one would implement this in a real productive project.
Oh my word. If it's code on the internet someone will use it. Especially functional programmers who have somehow landed themselves in a JavaScript position. I've seen much stranger code pulled off the internet and used in production applications by professionals.
That's why it's important to generally publish the best code possible whenever we can.