I need something like Ext.apply in Node.js. The most obvious way is to define my own:
function simplestApply(dst, src1) {
for (var key in src) if (src.hasOwnProperty(key))
Object.defineProperty(dst, key, Object.getOwnPropertyDescriptor(src, key));
}
But isn't there any built-in function for the same purpose?