mirror of
https://github.com/xibyte/jsketcher
synced 2025-12-06 16:33:15 +01:00
9 lines
No EOL
249 B
JavaScript
9 lines
No EOL
249 B
JavaScript
export default function decoratorChain() {
|
|
let decorators = Array.from(arguments);
|
|
return function(Component) {
|
|
for (let i = decorators.length - 1; i >= 0; i --) {
|
|
Component = decorators[i](Component);
|
|
}
|
|
return Component;
|
|
}
|
|
} |