Created
May 1, 2020 12:09
-
-
Save puskuruk/54613955234a93aec40cc7d9685a9309 to your computer and use it in GitHub Desktop.
This file contains 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 = howManyTimes => functionWillExecute => { | |
if (howManyTimes > 0) { | |
functionWillExecute() | |
times(howManyTimes - 1)(functionWillExecute) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment