UNPKG

com-tools

Version:

com-tools 提供了一些通用的工具函数;

52 lines (25 loc) 697 B
<!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [com-tools](./com-tools.md) &gt; [copyConstructor](./com-tools.copyconstructor.md) ## copyConstructor() function 拷贝构造函数,与 copyFunction 相比,该函数还会还原构造函数的继续链,即 prototype **Signature:** ```typescript export declare function copyConstructor<F extends Function>(fun: F): F; ``` ## Parameters <table><thead><tr><th> Parameter </th><th> Type </th><th> Description </th></tr></thead> <tbody><tr><td> fun </td><td> F </td><td> </td></tr> </tbody></table> **Returns:** F