Skip to content

Commit a0191a5

Browse files
committed
fix: ensure sentinel value is passed through
--- 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: na - 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: passed - task: lint_typescript_tests status: na - task: lint_license_headers status: passed ---
1 parent 2e0f8e6 commit a0191a5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/node_modules/@stdlib/ndarray/find/lib/validate.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ var format = require( '@stdlib/string/format' );
4141
* @param {Options} options - function options
4242
* @param {boolean} [options.keepdims] - boolean indicating whether the reduced dimensions should be included in the returned ndarray as singleton dimensions
4343
* @param {IntegerArray} [options.dims] - list of dimensions over which to perform a reduction
44+
* @param {(*|ndarray)} [options.sentinelValue] - sentinel value
4445
* @returns {(Error|null)} null or an error object
4546
*
4647
* @example
@@ -81,6 +82,9 @@ function validate( opts, ndims, options ) {
8182
}
8283
opts.dims = tmp;
8384
}
85+
if ( hasOwnProp( options, 'sentinelValue' ) ) {
86+
opts.sentinelValue = options.sentinelValue;
87+
}
8488
return null;
8589
}
8690

0 commit comments

Comments
 (0)