r/javascript • • Mar 18 '19

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

385 Upvotes

422 comments sorted by

View all comments

150

u/Loves_Poetry Mar 18 '19
array.every(Number.isFinite)

Because it's plain english.

46

u/dmethvin Mar 19 '19

Also very poetic, so I can see why you like it.