Skip to content

Instantly share code, notes, and snippets.

@Reedyn
Created October 4, 2019 11:08
Show Gist options
  • Save Reedyn/8ad3b22bf96aad279f8cf9571b2eab35 to your computer and use it in GitHub Desktop.
Save Reedyn/8ad3b22bf96aad279f8cf9571b2eab35 to your computer and use it in GitHub Desktop.
Constructor function
function constructor(spec) {
let {member} = spec;
const {other} = other_constructor(spec);
const method = () => {
// 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