Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save cbrunnkvist/9064356 to your computer and use it in GitHub Desktop.
Save cbrunnkvist/9064356 to your computer and use it in GitHub Desktop.
var FooPrototype = {
methodA: function methodA() {},
methodB: function methodB() {},
methodC: function methodC() {}
};
exports.createFoo = function() {
return Object.create(FooPrototype);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment