@@ -40,7 +40,7 @@ type Unary<T, V> = ( this: V, value: T ) => void;
40
40
* @param value - current array element
41
41
* @param index - current array element index
42
42
*/
43
- type Binary < T , V > = ( this : V , value : T , indices : Array < number > ) => void ;
43
+ type Binary < T , V > = ( this : V , value : T , index : number ) => void ;
44
44
45
45
/**
46
46
* Callback invoked for each array element.
@@ -49,7 +49,7 @@ type Binary<T, V> = ( this: V, value: T, indices: Array<number> ) => void;
49
49
* @param index - current array element index
50
50
* @param arr - input array
51
51
*/
52
- type Ternary < T , U , V > = ( this : V , value : T , indices : Array < number > , arr : U ) => void ;
52
+ type Ternary < T , U , V > = ( this : V , value : T , index : number , arr : U ) => void ;
53
53
54
54
/**
55
55
* Callback invoked for each array element.
@@ -65,7 +65,7 @@ type Callback<T, U, V> = Nullary<V> | Unary<T, V> | Binary<T, V> | Ternary<T, U,
65
65
*
66
66
* @param x - input array
67
67
* @param fcn - callback function
68
- * @param thisArg - callback function execution context
68
+ * @param thisArg - callback execution context
69
69
*
70
70
* @example
71
71
* var naryFunction = require( '@stdlib/utils/nary-function' );
@@ -84,7 +84,7 @@ declare function forEach<T = unknown, V = unknown>( x: AccessorArrayLike<T>, fcn
84
84
*
85
85
* @param x - input array
86
86
* @param fcn - callback function
87
- * @param thisArg - callback function execution context
87
+ * @param thisArg - callback execution context
88
88
*
89
89
* @example
90
90
* var naryFunction = require( '@stdlib/utils/nary-function' );
0 commit comments