| Conditions | 3 |
| Total Lines | 11 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | /** |
||
| 36 | function copyProps(target, source) { |
||
| 37 | const properties = Object.getOwnPropertyNames(source); |
||
| 38 | |||
| 39 | properties |
||
| 40 | .concat(Object.getOwnPropertySymbols(source)) |
||
| 41 | .filter((key) => !key.match(/^(?:constructor|prototype|arguments|caller|name|bind|call|apply|toString|length)$/)) |
||
| 42 | .forEach((key) => { |
||
| 43 | const props = Object.getOwnPropertyDescriptor(source, key); |
||
| 44 | Object.defineProperty(target, key, props); |
||
| 45 | }); |
||
| 46 | } |
||
| 47 |