Skip to content

Commit

Permalink
Merge pull request #361 from zavan/patch-1
Browse files Browse the repository at this point in the history
docs: fix JSON.serialize -> JSON.stringify
  • Loading branch information
colincasey authored Feb 2, 2024
2 parents 24ecc86 + 4e826ff commit fa018d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ Returns the canonicalized `.domain` field. This is lower-cased and punycode ([RF

#### `.toJSON()`

For convenience in using `JSON.serialize(cookie)`. Returns a plain-old `Object` that can be JSON-serialized.
For convenience in using `JSON.stringify(cookie)`. Returns a plain-old `Object` that can be JSON-serialized.

Any `Date` properties (such as `.expires`, `.creation`, and `.lastAccessed`) are exported in ISO format (`.toISOString()`).

Expand Down

0 comments on commit fa018d2

Please sign in to comment.