Chris Fritz
Chris Fritz

Reputation: 1940

LiveScript equivalent to fat arrow syntax in CoffeeScript or ES6

The => in CoffeeScript or ES6 is often useful for binding this to a function, especially in callbacks. I can't seem to find an alternative in LiveScript. Does it exist?

Upvotes: 2

Views: 152

Answers (1)

Chris Fritz
Chris Fritz

Reputation: 1940

It's ~>.

Answer courtesy of _rgn on the #livescript channel on freenode.

Upvotes: 3

Related Questions