Skip to content

Commit dc661d4

Browse files
authored
Apply suggestions from code review
Co-authored-by: Athan <kgryte@gmail.com> Signed-off-by: Athan <kgryte@gmail.com>
1 parent 324733a commit dc661d4

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

  • lib/node_modules/@stdlib/plot/base/view/lib/browser/app/editor

lib/node_modules/@stdlib/plot/base/view/lib/browser/app/editor/on_change.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ var isJSON = require( '@stdlib/assert/is-json' );
2727
var isString = require( '@stdlib/assert/is-string' ).isPrimitive;
2828
var trim = require( '@stdlib/string/base/trim' );
2929
var Number = require( '@stdlib/number/ctor' );
30+
var isnan = require( '@stdlib/math/base/assert/is-nan' );
3031
var join = require( '@stdlib/array/base/join' );
3132
var log = require( './../log.js' );
3233
var config = require( './../config.js' );
@@ -120,7 +121,7 @@ function onChange( event ) {
120121
n = Number( tmp );
121122
if ( tmp === '' ) {
122123
val = void 0;
123-
} else if ( !isNaN( n ) ) {
124+
} else if ( !isnan( n ) ) {
124125
val = n;
125126
} else if ( tmp.indexOf( ',' ) !== -1 ) {
126127
tmp = tmp.split( /\s*,\s*/ );

0 commit comments

Comments
 (0)