Skip to content

Commit f19d145

Browse files
committed
fix: bugs & docs
--- type: pre_commit_static_analysis_report description: Results of running static analysis checks when committing changes. report: - task: lint_filenames status: passed - task: lint_editorconfig status: passed - task: lint_markdown status: passed - task: lint_package_json status: na - task: lint_repl_help status: na - task: lint_javascript_src status: passed - task: lint_javascript_cli status: na - task: lint_javascript_examples status: na - task: lint_javascript_tests status: na - task: lint_javascript_benchmarks status: na - task: lint_python status: na - task: lint_r status: na - task: lint_c_src status: na - task: lint_c_examples status: na - task: lint_c_benchmarks status: na - task: lint_c_tests_fixtures status: na - task: lint_shell status: na - task: lint_typescript_declarations status: na - task: lint_typescript_tests status: na - task: lint_license_headers status: passed ---
1 parent 9a28944 commit f19d145

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

lib/node_modules/@stdlib/ndarray/some-by/README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ limitations under the License.
3333
## Usage
3434

3535
```javascript
36-
var someBy = require( '@stdlib/ndarray/someBy' );
36+
var someBy = require( '@stdlib/ndarray/some-by' );
3737
```
3838

3939
#### someBy( x, n\[, options], predicate\[, thisArg] )
@@ -208,7 +208,7 @@ var v = out.get();
208208
// returns true
209209

210210
var count = ctx.count;
211-
// returns 6
211+
// returns 2
212212
```
213213

214214
#### someBy.assign( x, n, out\[, options], predicate\[, thisArg] )
@@ -300,7 +300,7 @@ var ox = 1;
300300
var x = new ndarray( 'float64', xbuf, sh, sx, ox, 'row-major' );
301301

302302
// Create an output ndarray:
303-
var y = empty( [ 3 ], {
303+
var y = empty( [ 2 ], {
304304
'dtype': 'bool'
305305
});
306306

@@ -349,6 +349,7 @@ var ndarray2array = require( '@stdlib/ndarray/to-array' );
349349
var scalar2ndarray = require( '@stdlib/ndarray/from-scalar' );
350350
var fillBy = require( '@stdlib/ndarray/fill-by' );
351351
var zeros = require( '@stdlib/ndarray/zeros' );
352+
var someBy = require( '@stdlib/ndarray/some-by' );
352353

353354
var x = zeros( [ 2, 4, 5 ], {
354355
'dtype': 'float64'

lib/node_modules/@stdlib/ndarray/some-by/lib/assign.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ function assign( x, n, y, options, predicate, thisArg ) {
137137
} else if ( nargs === 5 ) {
138138
if ( isFunction( options ) ) {
139139
cb = options;
140-
ctx = thisArg;
140+
ctx = predicate;
141141
opts = objectAssign( {}, defaults );
142142
opts.dims = zeroTo( N );
143143
}

lib/node_modules/@stdlib/ndarray/some-by/lib/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ function someBy( x, n, options, predicate, thisArg ) {
143143
} else if ( nargs === 4 ) {
144144
if ( isFunction( options ) ) {
145145
cb = options;
146-
ctx = thisArg;
146+
ctx = predicate;
147147
opts = objectAssign( {}, defaults );
148148
opts.dims = zeroTo( N );
149149
}

0 commit comments

Comments
 (0)