This is a read-only archive of the Framer Community on Facebook.

What is Framer? Join the Community
Return to index
Philip Madeley
Posted Mar 14 - Read on Facebook

Just came across some super useful one-liners in Coffeescript. Worth checking out.

4 Comments

Peter Finlan

Legend

Matt Johnson

Nice find!

Radek Kyselý

Good news is—most of those are also possible in ES6, so when Framer moves to JavaScript, we won't lose a lot :)

Josh Ackerman

Just in case someone interested doesn't know this many of these ideas are using a programming perspective called functional programming. For instance map and fold are examples of "higher order functions", and can be used to do very powerful things without writing a lot of code.

More info, https://en.m.wikipedia.org/wiki/Functional_programming.

Read the entire post on Facebook