Created
May 16, 2017 19:54
-
-
Save ethernet8023/ff5cdb93c992ac50214742e2a764e4a5 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 config(obj, opts) { | |
| Object.keys(opts).forEach(opt => { | |
| obj[`set${opt.charAt(0).toUpperCase() + opt.slice(1)}`](opts[opt]); | |
| }); | |
| return obj; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment