r/javascript • • Mar 18 '19

What's your favorite, most useful javascript one-liner?

385 Upvotes

422 comments sorted by

View all comments

Show parent comments

4

u/IntelligenceOptional Mar 19 '19

Just make sure your linter reminds you to dedebugger...

1

u/Hanlonsrazorburns Mar 19 '19

Use environment variables and leave it in.

3

u/facebalm Mar 19 '19

The compiler/minifier can deal with it too, but your colleagues will still hate you.

2

u/IntelligenceOptional Mar 19 '19

Heck, I'd hate my self if I left them in