Skip to content

Commit a06fb8b

Browse files
committed
error fixed
--- type: pre_push_report description: Results of running various checks prior to pushing changes. report: - task: run_javascript_examples status: passed - task: run_c_examples status: na - task: run_cpp_examples status: na - task: run_javascript_readme_examples status: na - task: run_c_benchmarks status: na - task: run_cpp_benchmarks status: na - task: run_fortran_benchmarks status: na - task: run_javascript_benchmarks status: na - task: run_julia_benchmarks status: na - task: run_python_benchmarks status: na - task: run_r_benchmarks status: na - task: run_javascript_tests status: na ---
1 parent 3e049ad commit a06fb8b

File tree

1 file changed

+1
-1
lines changed
  • lib/node_modules/@stdlib/stats/incr/nanrange/examples

1 file changed

+1
-1
lines changed

lib/node_modules/@stdlib/stats/incr/nanrange/examples/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,6 @@ for ( i = 0; i < 100; i++ ) {
3838
v = randu() * 100.0;
3939
}
4040
range = accumulator( v );
41-
console.log( '%d\t%s', v.toFixed( 4 ), ( range != null && range !== undefined ) ? range.toFixed( 4 ) : 'NaN' );
41+
console.log( '%d\t%s', v.toFixed( 4 ), ( range !== null && typeof range !== 'undefined' ) ? range.toFixed( 4 ) : 'NaN' );
4242
}
4343
console.log( '\nFinal range: %d\n', accumulator() );

0 commit comments

Comments
 (0)