-
-
Save anonymous/22d9bc43099eb595ba27b0f31b128edd 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
function sequence(start = 0, step = 1) { | |
return function() { | |
var prevStart = start; | |
start += step; | |
return prevStart; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment