Skip to content

Commit 950d7f2

Browse files
committed
docs: Update example in README
1 parent 1f4dd04 commit 950d7f2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ Serialization uses
2222
which encodes most non-alphanumeric characters.
2323

2424
- The primitive types `string`, `number`, and `bigint` are serialized using `.toString()`.
25-
- The primitive `boolean` type is serialized using `.toString()` to `'true'` or `'false'`.
25+
- The primitive `boolean` type is serialized using `.toString()`,
26+
e.g., `{ foo: true, bar: false }` serializes to `foo=true&bar=false`.
2627
- The primitive `null` and `undefined` values are removed,
2728
e.g., `{ foo: null, bar: undefined, baz: 1 }` serializes to `baz=1`.
2829
- `Date` objects are detected and serialized using `Date.toISOString()`.

0 commit comments

Comments
 (0)