Skip to content

Commit

Permalink
added comments
Browse files Browse the repository at this point in the history
  • Loading branch information
adarshmadrecha committed Mar 18, 2024
1 parent caad8dc commit 1079b01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ export const unparse = (_input, _config) => {
return '';

if (str.constructor === Date)
return JSON.stringify(str).slice(1, 25);
return JSON.stringify(str).slice(1, 25); // slice is to remove quotes and milliseconds from the string returned by JSON.stringify

let needsQuotes = false;

Expand Down

0 comments on commit 1079b01

Please sign in to comment.