UNPKG

com-tools

Version:

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

72 lines (34 loc) 841 B
<!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [com-tools](./com-tools.md) &gt; [omitMembersByPath](./com-tools.omitmembersbypath.md) ## omitMembersByPath() function 通过属性路径剔除成员,删除成员 **Signature:** ```typescript export declare function omitMembersByPath(obj: any, propPaths: PropertyKey[][]): any; ``` ## Parameters <table><thead><tr><th> Parameter </th><th> Type </th><th> Description </th></tr></thead> <tbody><tr><td> obj </td><td> any </td><td> </td></tr> <tr><td> propPaths </td><td> PropertyKey\[\]\[\] </td><td> </td></tr> </tbody></table> **Returns:** any 返回原来的对象,但删除了指定的成员 ## Remarks 会改变原对象