1 |
|
2 | /**
|
3 | * 指定方法后的返回值组成的新对象
|
4 | * @param obj 对象
|
5 | * @param iterate 回调
|
6 | * @param context 上下文
|
7 | */
|
8 | export declare function objectMap<T, U>(obj: T, iterate: (item: any, key: string, obj: T) => U, context ?: any): U;
|
9 | export declare function objectMap<U>(obj: any, iterate: (item: any, key: string, obj: any) => U, context ?: any): U;
|
10 |
|
11 | declare module './ctor' {
|
12 | interface XEUtilsMethods {
|
13 | objectMap: typeof objectMap;
|
14 | }
|
15 | }
|
16 |
|
17 | export default objectMap
|