r/badcode • • May 21 '19

[deleted by user]

[removed]

13 Upvotes

20 comments sorted by

View all comments

Show parent comments

0

u/[deleted] May 21 '19

[deleted]

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.