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

1

u/alinnert Mar 19 '19

Yeah, this is the pre-ES6 version. I used it a lot when I had to. It's just not as clear about what it's doing.

1

u/enHello Mar 19 '19

Agreed.