Skip to content

Instantly share code, notes, and snippets.

@1dolinski
Created August 21, 2016 16:52
Show Gist options
  • Select an option

  • Save 1dolinski/4dffb32ab28ab0f0e6457b622120d052 to your computer and use it in GitHub Desktop.

Select an option

Save 1dolinski/4dffb32ab28ab0f0e6457b622120d052 to your computer and use it in GitHub Desktop.
// 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