Skip to content

Instantly share code, notes, and snippets.

@FlorianBELLAZOUZ
Created April 13, 2017 12:37
Show Gist options
  • Save FlorianBELLAZOUZ/3123ae4411cc5c4ab4864321b6256594 to your computer and use it in GitHub Desktop.
Save FlorianBELLAZOUZ/3123ae4411cc5c4ab4864321b6256594 to your computer and use it in GitHub Desktop.
run a function x times
const times = (func,n)=>{for(var i=n;i>0;i--)func(n-i)}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment