Hacker News new | ask | show | jobs
by Waterluvian 755 days ago
If I want to roll it by hand and not use a minifier, is there a code golf dictionary of patterns for javascript?
2 comments

Of course, search for "js code golf tips" to start. Many tips equally apply to C and JS due to the syntatic similarity, though JS-specific idioms like x|0 exist as well.
best place is the code.golf wiki: https://code.golf/wiki/langs/javascript. They also have tips for other languages.
Aha this is exactly what I had hoped for. Thank you!