Skip to content

Instantly share code, notes, and snippets.

@dnasca
Created September 25, 2015 02:23
Show Gist options
  • Select an option

  • Save dnasca/904a029fb5bfb73d40c3 to your computer and use it in GitHub Desktop.

Select an option

Save dnasca/904a029fb5bfb73d40c3 to your computer and use it in GitHub Desktop.
class free oop
//class free oop
function constructor(spec) {
let {member} = spec,
{other} = other_constructor(spec),
method = function() {
// 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