Skip to content

Instantly share code, notes, and snippets.

@alexkahn
Created December 12, 2015 23:36
Show Gist options
  • Save alexkahn/687fd17a8652fe4aacd7 to your computer and use it in GitHub Desktop.
Save alexkahn/687fd17a8652fe4aacd7 to your computer and use it in GitHub Desktop.
crockford constructor
function constructor(spec) {
var that = other_constructor(spec),
member,
method = function() {
//spec, member, method
};
that.method = method;
return that;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment