1 | declare function forEach<A extends ArrayLike<any>, THIS_TYPE = undefined>(
|
2 | array: A,
|
3 | callback: (this: THIS_TYPE, value: A extends ArrayLike<infer T> ? T : any, index: number, array: A) => void,
|
4 | thisArg?: THIS_TYPE,
|
5 | ): void;
|
6 | declare function forEach<O extends object, THIS_TYPE = undefined>(
|
7 | obj: O,
|
8 | callback: (this: THIS_TYPE, value: O[keyof O], key: string, obj: O) => void,
|
9 | thisArg?: THIS_TYPE,
|
10 | ): void;
|
11 |
|
12 | export = forEach;
|