12345678910111213141516171819202122232425 |
- import { XEUtilsMethods } from '../xe-utils'
- export declare function mapIterate(item: any, index: number, list: any[]): any;
- /**
- * 指定方法后的返回值组成的新数组
- * @param array 数组
- * @param iteratee 回调
- * @param context 上下文
- */
- export declare function map(array: any[], iteratee: typeof mapIterate, context?: any): any[];
- declare module '../xe-utils' {
- interface XEUtilsMethods {
- /**
- * 指定方法后的返回值组成的新数组
- * @param array 数组
- * @param iteratee 回调
- * @param context 上下文
- */
- map: typeof map;
- }
- }
- export default map
|