Created
March 7, 2017 16:03
-
-
Save fmal/b2441d0ab4854fde503bc3709f530a2c to your computer and use it in GitHub Desktop.
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
| function withDefault (value, defaultValue) { | |
| if (value === undefined || value === null) { | |
| return defaultValue; | |
| } | |
| return value; | |
| } | |
| // const velocity = withDefault(config.velocity, 0); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment