We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7cfd30f commit 4f80b80Copy full SHA for 4f80b80
lib/node_modules/@stdlib/stats/base/range-by/lib/accessors.js
@@ -67,15 +67,15 @@ function rangeBy( N, x, strideX, offsetX, clbk, thisArg) {
67
get = x.accessors[ 0 ];
68
69
if ( N === 1 || strideX === 0 ) {
70
- v = clbk.call( thisArg, get( xbuf, offsetX ), 0, offsetX, x );
+ v = clbk.call( thisArg, get( xbuf, offsetX ), 0, offsetX, xbuf );
71
if ( v === void 0 || isnan( v ) ) {
72
return NaN;
73
}
74
return 0.0;
75
76
ix = offsetX;
77
for ( i = 0; i < N; i++ ) {
78
- min = clbk.call( thisArg, get( xbuf, ix ), i, ix, x );
+ min = clbk.call( thisArg, get( xbuf, ix ), i, ix, xbuf );
79
if ( min !== void 0 ) {
80
break;
81
@@ -88,7 +88,7 @@ function rangeBy( N, x, strideX, offsetX, clbk, thisArg) {
88
i += 1;
89
for ( i; i < N; i++ ) {
90
ix += strideX;
91
- v = clbk.call( thisArg, get( xbuf, ix ), i, ix, x );
+ v = clbk.call( thisArg, get( xbuf, ix ), i, ix, xbuf );
92
if ( v === void 0 ) {
93
continue;
94
0 commit comments