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.

1

u/FormerGameDev Mar 25 '19

... what would you use this for?