Skip to content

Instantly share code, notes, and snippets.

@AutoSponge
Created September 10, 2014 15:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AutoSponge/686ae765181276a867e4 to your computer and use it in GitHub Desktop.
Save AutoSponge/686ae765181276a867e4 to your computer and use it in GitHub Desktop.
better parts
function constructor(spec) {
let {member} = spec,
{other} = other_constructor(spec),
method = function () {
// member, other, method
};
return Object.freeze({
method,
other
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment