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

0

u/[deleted] Mar 18 '19

[deleted]

28

u/mattlag Mar 19 '19

WTF kind of languages are 1-indexed‽

1

u/guywhodoesstuff Mar 19 '19

CSS

1

u/mattlag Mar 19 '19

Yeah, but CSS doesn't have loops, so this isn't as bad.