Created
March 19, 2017 17:34
-
-
Save abradley2/d8981517765b7241238ed0495e1f7638 to your computer and use it in GitHub Desktop.
series
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
// utility function to run a series of functions | |
function series (funcs, idx) { | |
return funcs[idx || 0] && funcs[idx || 0](series.bind({}, funcs, (idx || 0) + 1)) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment