Skip to content

Instantly share code, notes, and snippets.

@vjeux
Created June 29, 2014 13:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vjeux/ca5c28098c3c8f394938 to your computer and use it in GitHub Desktop.
Save vjeux/ca5c28098c3c8f394938 to your computer and use it in GitHub Desktop.
var SomeClass = function() {
// constructor
}
copyProperties(SomeClass, {
staticMethodA: function() {
}
})
copyProperties(SomeClass.prototype, {
methodA: function() {
},
// ...
});
class SomeClass {
constructor() {
}
static staticMethodA() {
}
methodA() {
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment