Created
November 17, 2019 03:16
-
-
Save jadehopepunk/3bab9e242f0eff79c46ceb1e18fffe40 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
// 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