chore(decorate-with): named function

This commit is contained in:
Julien Fontanet 2021-05-28 12:06:00 +02:00
parent a20927343a
commit fbf194e4be

View File

@ -1,4 +1,6 @@
exports.decorateWith = (fn, ...args) => (target, name, descriptor) => ({
...descriptor,
value: fn(descriptor.value, ...args),
})
exports.decorateWith = function decorateWith(fn, ...args) {
return (target, name, descriptor) => ({
...descriptor,
value: fn(descriptor.value, ...args),
})
}