Skip to content

Commit e33f235

Browse files
committed
tweak
1 parent 6c9729d commit e33f235

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/stringify.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,8 @@ export function stringify(value, reducers) {
8181
break;
8282

8383
case 'Date':
84-
const isValidDate = !isNaN(thing.getDate())
85-
str = `["Date","${isValidDate ? thing.toISOString() : ''}"]`;
84+
const valid = !isNaN(thing.getDate());
85+
str = `["Date","${valid ? thing.toISOString() : ''}"]`;
8686
break;
8787

8888
case 'RegExp':

0 commit comments

Comments
 (0)