Skip to content

Commit 28f541d

Browse files
committed
Use global isNaN function
1 parent 4b85633 commit 28f541d

File tree

1 file changed

+1
-1
lines changed
  • lib/node_modules/@stdlib/string/format/lib

1 file changed

+1
-1
lines changed

lib/node_modules/@stdlib/string/format/lib/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
// MODULES //
2222

2323
var isString = require( '@stdlib/assert/is-string' ).isPrimitive;
24-
var isnan = require( '@stdlib/math/base/assert/is-nan' );
2524
var formatInteger = require( './format_integer.js' );
2625
var formatDouble = require( './format_double.js' );
2726
var tokenize = require( './tokenize.js' );
@@ -32,6 +31,7 @@ var zeroPad = require( './zero_pad.js' );
3231
// VARIABLES //
3332

3433
var fromCharCode = String.fromCharCode;
34+
var isnan = isNaN; // NOTE: We use the global `isNaN` function here instead of `@stdlib/math/base/assert/is-nan` to avoid circular dependencies.
3535

3636

3737
// MAIN //

0 commit comments

Comments
 (0)