r/badcode • • May 21 '19

[deleted by user]

[removed]

14 Upvotes

20 comments sorted by

View all comments

Show parent comment

0

u/[deleted] May 21 '19

[deleted] — view deleted comment

1

u/nupanick May 21 '19

And without curly braces! Who needs function bodies when you can use lambdas?

Of course, if you need a "real" function, with a this environment, then you can just use the Function() constructor to eval a string as a function body.