pretty-format
Advanced tools
Comparing version
@@ -83,7 +83,3 @@ 'use strict'; | ||
function printNumber(val) { | ||
if (val != +val) { | ||
return 'NaN'; | ||
} | ||
const isNegativeZero = val === 0 && 1 / val < 0; | ||
return isNegativeZero ? '-0' : '' + val; | ||
return Object.is(val, -0) ? '-0' : String(val); | ||
} | ||
@@ -90,0 +86,0 @@ |
{ | ||
"name": "pretty-format", | ||
"version": "22.1.0", | ||
"version": "22.4.0", | ||
"repository": { | ||
@@ -5,0 +5,0 @@ "type": "git", |
Sorry, the diff of this file is too big to display
433375
0.07%5777
0.07%