r/javascript • • Mar 18 '19

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

385 Upvotes

422 comments sorted by

View all comments

15

u/grantrules Mar 19 '19
[...String.raw({ raw: ['',...Array.from( new Array(16), () => 'x'-'y')]}, '!namtaB ')].reverse().join("")

11

u/[deleted] Mar 19 '19

Holy type abuse!