lodash-decorators
Version:
A collection of decorators using lodash at it's core.
15 lines • 508 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
var forOwn = require("lodash/forOwn");
/**
* Used to copy over meta data from function to function.
* If meta data is attached to a function. This can get lost
* when wrapping functions. This tries to persist that.
* @private
*/
function copyMetadata(to, from) {
forOwn(from, function (value, key) { return to[key] = value; });
return to;
}
exports.copyMetadata = copyMetadata;
//# sourceMappingURL=copyMetaData.js.map
;