Last active
April 9, 2017 15:37
-
-
Save mhart/4791003d7f92beb05895fbf796872245 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
var api = foo | |
api.foo = 1 | |
api.bar = 2 | |
export default api | |
Object.assign(foo, someThings) | |
export default foo | |
array.forEach(item => { | |
bar[item.key] = item.value | |
}) | |
export default bar | |
import foo from './foo' | |
foo.applyTo(thing) | |
export default thing |
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
var api = exports | |
api.foo = 1 | |
api.bar = 2 | |
Object.assign(exports, someThings) | |
array.forEach(item => { | |
exports[item.key] = item.value | |
}) | |
require('./foo').applyTo(exports) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment