UNPKG

411 BTypeScriptView Raw
1/**
2 * 在list的每个元素上执行方法,任何传递的额外参数都会在调用方法的时候传递给它
3 * @param list 数组
4 * @param path
5 * @example
6 */
7export declare function invoke(list: any[], path: string[] | string | ((this: any, ...args: any[]) => any)): any[];
8
9declare module './ctor' {
10 interface XEUtilsMethods {
11 invoke: typeof invoke;
12 }
13}
14
15export default invoke