We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6c9729d commit e33f235Copy full SHA for e33f235
src/stringify.js
@@ -81,8 +81,8 @@ export function stringify(value, reducers) {
81
break;
82
83
case 'Date':
84
- const isValidDate = !isNaN(thing.getDate())
85
- str = `["Date","${isValidDate ? thing.toISOString() : ''}"]`;
+ const valid = !isNaN(thing.getDate());
+ str = `["Date","${valid ? thing.toISOString() : ''}"]`;
86
87
88
case 'RegExp':
0 commit comments