Skip to content

Commit 0a081ce

Browse files
committed
fix: use valueOf to return primitive value
1 parent e5f293c commit 0a081ce

File tree

1 file changed

+1
-1
lines changed
  • lib/node_modules/@stdlib/assert/is-nonnegative-finite/lib

1 file changed

+1
-1
lines changed

lib/node_modules/@stdlib/assert/is-nonnegative-finite/lib/object.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ var PINF = require( '@stdlib/constants/float64/pinf' );
5151
function isNonNegativeFinite( value ) {
5252
return (
5353
isNonNegativeNumber( value ) &&
54-
value < PINF
54+
value.valueOf() < PINF
5555
);
5656
}
5757

0 commit comments

Comments
 (0)