UNPKG

com-tools

Version:

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

68 lines (32 loc) 781 B
<!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [com-tools](./com-tools.md) &gt; [pickMembersByPath](./com-tools.pickmembersbypath.md) ## pickMembersByPath() function 通过属性路径提取成员 **Signature:** ```typescript export declare function pickMembersByPath(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 返回一个只包含指定key的新对象