Created
October 1, 2017 20:46
-
-
Save cmstead/0cfbc6c9993a547ccc406bef0a071bb3 to your computer and use it in GitHub Desktop.
MultiplyThenDivide composition
This file contains hidden or 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
const multiply = (a, b) => a * b; | |
const divide = (a, b) => a / b; | |
const multiplyThenDivide = (a, b, c) => divide(multiply(a, b), c); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment