Skip to content

Instantly share code, notes, and snippets.

@xsurge83
Last active December 16, 2015 22:29
Show Gist options
  • Save xsurge83/5506956 to your computer and use it in GitHub Desktop.
Save xsurge83/5506956 to your computer and use it in GitHub Desktop.
Interfaces and Implementation
var UserRepo = {
get: function(id){}
save: function(user){}
};
var UserRepoImpl1 = function(...){
}
UserRepoImpl1.prototype = Object.create(UserRepo);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment