Skip to content

Commit f24a5d3

Browse files
committed
Merge branch 'array-base-map' of https://github.com/headlessNode/stdlib into array-base-map
2 parents 79409d3 + b208157 commit f24a5d3

File tree

1 file changed

+8
-8
lines changed
  • lib/node_modules/@stdlib/array/base/map/lib

1 file changed

+8
-8
lines changed

lib/node_modules/@stdlib/array/base/map/lib/assign.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ var arraylike2object = require( '@stdlib/array/base/arraylike2object' );
3131
* @private
3232
* @param {Collection} x - input array
3333
* @param {Collection} y - output array
34-
* @param {integer} strideX - stride length for x
35-
* @param {NonNegativeInteger} offsetX - starting index for x
34+
* @param {integer} strideX - stride length for output array
35+
* @param {NonNegativeInteger} offsetX - starting index for output array
3636
* @param {Function} fcn - callback function
3737
* @param {*} thisArg - callback execution context
3838
* @returns {Collection} output array
@@ -58,7 +58,7 @@ function internal( x, y, strideX, offsetX, fcn, thisArg ) {
5858
var i;
5959

6060
io = offsetX;
61-
for ( i = 0; i < y.length; i++ ) {
61+
for ( i = 0; i < x.length; i++ ) {
6262
y[ io ] = fcn.call( thisArg, x[ i ], i, x );
6363
io += strideX;
6464
}
@@ -71,8 +71,8 @@ function internal( x, y, strideX, offsetX, fcn, thisArg ) {
7171
* @private
7272
* @param {Object} x - input array object
7373
* @param {Object} y - output array object
74-
* @param {integer} strideX - stride length for x
75-
* @param {NonNegativeInteger} offsetX - starting index for x
74+
* @param {integer} strideX - stride length for output array
75+
* @param {NonNegativeInteger} offsetX - starting index for output array
7676
* @param {Function} fcn - callback function
7777
* @param {*} thisArg - callback execution context
7878
* @returns {Object} output array object
@@ -107,7 +107,7 @@ function accessors( x, y, strideX, offsetX, fcn, thisArg ) {
107107
yset = y.accessors[ 1 ];
108108

109109
io = offsetX;
110-
for ( i = 0; i < ydata.length; i++ ) {
110+
for ( i = 0; i < xdata.length; i++ ) {
111111
yset( ydata, io, fcn.call( thisArg, xget( xdata, i ), i, xdata ) );
112112
io += strideX;
113113
}
@@ -122,8 +122,8 @@ function accessors( x, y, strideX, offsetX, fcn, thisArg ) {
122122
*
123123
* @param {Collection} x - input array
124124
* @param {Collection} y - output array
125-
* @param {integer} strideX - stride length for x
126-
* @param {NonNegativeInteger} offsetX - starting index for x
125+
* @param {integer} strideX - stride length for output array
126+
* @param {NonNegativeInteger} offsetX - starting index for output array
127127
* @param {Function} fcn - callback function
128128
* @param {*} [thisArg] - callback execution context
129129
* @returns {Collection} output array

0 commit comments

Comments
 (0)