Skip to content

Instantly share code, notes, and snippets.

@RyanCCollins
Last active July 1, 2016 04:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save RyanCCollins/2f405d036f889c1f1cc85174746cb4e6 to your computer and use it in GitHub Desktop.
Save RyanCCollins/2f405d036f889c1f1cc85174746cb4e6 to your computer and use it in GitHub Desktop.
FP in JS
const say = (what) =>
(times) =>
[...Array(times||0)].map((v,i)=>i).forEach((_) => console.log(what))
say("What")(30)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment