1
This commit is contained in:
14
20220330_Vote/Ewide.Web.Entry/wwwroot/lib/xe-utils/pick.d.ts
vendored
Normal file
14
20220330_Vote/Ewide.Web.Entry/wwwroot/lib/xe-utils/pick.d.ts
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
/**
|
||||
* 根据 keys 过滤指定的属性值,返回一个新的对象
|
||||
* @param obj 对象
|
||||
* @param array 数组或字符串或方法
|
||||
*/
|
||||
export declare function pick(obj: any, array: string[]): any;
|
||||
|
||||
declare module './ctor' {
|
||||
interface XEUtilsMethods {
|
||||
pick: typeof pick;
|
||||
}
|
||||
}
|
||||
|
||||
export default pick
|
||||
Reference in New Issue
Block a user