Skip to content

Instantly share code, notes, and snippets.

@miksansegundo
Created December 18, 2015 02:32
Show Gist options
  • Save miksansegundo/03604387c6e571912df6 to your computer and use it in GitHub Desktop.
Save miksansegundo/03604387c6e571912df6 to your computer and use it in GitHub Desktop.
function constructor(spec) {
let {member} = spec,
{other} = other_constructor(spec),
method = function () {
// accesses member, other, method, spec
};
return Object.freeze({
method,
other
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment