Skip to content

Instantly share code, notes, and snippets.

@jadehopepunk
Created November 17, 2019 03:16
Show Gist options
  • Save jadehopepunk/3bab9e242f0eff79c46ceb1e18fffe40 to your computer and use it in GitHub Desktop.
Save jadehopepunk/3bab9e242f0eff79c46ceb1e18fffe40 to your computer and use it in GitHub Desktop.
// Option 1
const result = stepOne(input).stepTwo().stepThree()
// Option 2
let result = input
result = stepOne(result)
result = stepTwo(result)
result = stepThree(result)
// Option 3
const steps = [
stepOne,
stepTwo,
stepThree
]
const result = runSteps(steps)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment