Hacker News new | ask | show | jobs
by mendyberger 626 days ago
Code is actually tiny. Impressive!

You could make it even smaller by removing all the element names, and just have it be passed in as an argument. Would also reduce the amount of functions you need to declare, though function count is likely not a problem for modern JS engines.

Anyway, great job you did there!