Created
July 22, 2018 18:53
-
-
Save rolandpeelen/047c4eda66877db00580a3d0fb25e092 to your computer and use it in GitHub Desktop.
Some different Syntaxes
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 asHours = (duration) => { | |
| const stepOne = msToHours(duration); | |
| const stepTwo = valueIf(overOne(stepOne)); | |
| const stepThree = falseOr(Math.round(stepTwo)); | |
| const stepFour = falseOr(PostFixHours(stepThree)); | |
| return stepFour; | |
| } | |
| // Or, if you're a mad man. Like this: | |
| const asHours = (duration) => falseOr(postFixHours(falseOr(Math.round(valueIf(overOne(msToHours(duration))))))); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment