Skip to content

Instantly share code, notes, and snippets.

@abradley2
Created March 19, 2017 17:34
Show Gist options
  • Save abradley2/d8981517765b7241238ed0495e1f7638 to your computer and use it in GitHub Desktop.
Save abradley2/d8981517765b7241238ed0495e1f7638 to your computer and use it in GitHub Desktop.
series
// 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