UNPKG

com-tools

Version:

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

83 lines (38 loc) 950 B
<!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [com-tools](./com-tools.md) &gt; [getMemberWithDefault](./com-tools.getmemberwithdefault.md) ## getMemberWithDefault() function 获取成员值 **Signature:** ```typescript export declare function getMemberWithDefault(target: any, propPath: ObjectKey[], defaultValue?: GetDefaultValue | any): any; ``` ## Parameters <table><thead><tr><th> Parameter </th><th> Type </th><th> Description </th></tr></thead> <tbody><tr><td> target </td><td> any </td><td> </td></tr> <tr><td> propPath </td><td> [ObjectKey](./com-tools.objectkey.md)<!-- -->\[\] </td><td> </td></tr> <tr><td> defaultValue </td><td> [GetDefaultValue](./com-tools.getdefaultvalue.md) \| any </td><td> _(Optional)_ </td></tr> </tbody></table> **Returns:** any