Skip to content

Commit bf5c5f3

Browse files
bengourleyevanlucas
authored andcommitted
doc: fix "hashOwnProperty" typo in querystring
querystring subsystem docs referred to `obj.hashOwnProperty()` which is non-existent. Corrected to `obj.hasOwnProperty()`. PR-URL: #8107 Reviewed-By: targos - Michaël Zasso <mic.besace@gmail.com> Reviewed-By: Prince John Wesley <princejohnwesley@gmail.com> Reviewed-By: Brian White <mscdex@mscdex.net> Reviewed-By: Minwoo Jung <jmwsoft@gmail.com>
1 parent 08e2b04 commit bf5c5f3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/api/querystring.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ For example, the query string `'foo=bar&abc=xyz&abc=123'` is parsed into:
5858

5959
*Note*: The object returned by the `querystring.parse()` method _does not_
6060
prototypically extend from the JavaScript `Object`. This means that the
61-
typical `Object` methods such as `obj.toString()`, `obj.hashOwnProperty()`,
61+
typical `Object` methods such as `obj.toString()`, `obj.hasOwnProperty()`,
6262
and others are not defined and *will not work*.
6363

6464
By default, percent-encoded characters within the query string will be assumed

0 commit comments

Comments
 (0)