-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
Dr. Axel has a copyOwnFrom helper function that may be useful on http://www.2ality.com/2011/12/subtyping-builtins.html.
function copyOwnFrom(target, source) {
Object.getOwnPropertyNames(source).forEach(function(propName) {
Object.defineProperty(target, propName, Object.getOwnPropertyDescriptor(source, propName));
});
return target;
};
Metadata
Metadata
Assignees
Labels
No labels