Created
August 21, 2016 16:52
-
-
Save 1dolinski/4dffb32ab28ab0f0e6457b622120d052 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
| // https://medium.com/@koresar/fun-with-stamps-episode-1-stamp-basics-e0627d81efe0#.ke7jo334j | |
| const stampit = require('stampit'); | |
| // stampit(methods, state, enclose); | |
| const HasFoo = stampit.compose({ | |
| properties: { | |
| foo: 'default foo!' | |
| } | |
| }); | |
| const obj = HasFoo(); | |
| console.log(obj); // {} not the intended { foo: 'default foo!' } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment