Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 929ca30

Browse filesBrowse files
shubhekshaMylesBorins
authored andcommitted
doc: add info about serializable types
querystring.stringify() doesn't serialize some values. Explicitly mention what values are serialized in the docs. Add what happens when another data type is passed to `querystring.stringify()` besides the ones that can be correctly parsed PR-URL: #12313 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent 945dcde commit 929ca30
Copy full SHA for 929ca30

File tree

Expand file treeCollapse file tree

1 file changed

+4
-0
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+4
-0
lines changed
Open diff view settings
Collapse file

‎doc/api/querystring.md‎

Copy file name to clipboardExpand all lines: doc/api/querystring.md
+4Lines changed: 4 additions & 0 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,10 @@ added: v0.1.25
9191
The `querystring.stringify()` method produces a URL query string from a
9292
given `obj` by iterating through the object's "own properties".
9393

94+
It serializes the following types of values passed in `obj`:
95+
{string|number|boolean|string[]|number[]|boolean[]}
96+
Any other input values will be coerced to empty strings.
97+
9498
For example:
9599

96100
```js

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.