Created
April 13, 2017 12:37
-
-
Save FlorianBELLAZOUZ/3123ae4411cc5c4ab4864321b6256594 to your computer and use it in GitHub Desktop.
run a function x times
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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