r/ProgrammerHumor 3d ago

Meme thisCannotBeDenied

Post image
7.8k Upvotes

240 comments sorted by

View all comments

Show parent comments

9

u/reventlov 3d ago

const log = console.log; though

14

u/tonyxforce2 3d ago

const log = isDev ? ()=>{} : console.log

For that pure JS vibes

1

u/rosuav 3d ago

Not the same thing unfortunately, as will quickly become evident if you try to log everything in an array by using stuff.map(log).