Browse Source

doc: fix "hashOwnProperty" typo in querystring

querystring subsystem docs referred to `obj.hashOwnProperty()`
which is non-existent. Corrected to `obj.hasOwnProperty()`.

PR-URL: https://github.com/nodejs/node/pull/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>
v7.x
Ben Gourley 8 years ago
committed by Rich Trott
parent
commit
24e4488891
  1. 2
      doc/api/querystring.md

2
doc/api/querystring.md

@ -58,7 +58,7 @@ For example, the query string `'foo=bar&abc=xyz&abc=123'` is parsed into:
*Note*: The object returned by the `querystring.parse()` method _does not_ *Note*: The object returned by the `querystring.parse()` method _does not_
prototypically extend from the JavaScript `Object`. This means that the prototypically extend from the JavaScript `Object`. This means that the
typical `Object` methods such as `obj.toString()`, `obj.hashOwnProperty()`, typical `Object` methods such as `obj.toString()`, `obj.hasOwnProperty()`,
and others are not defined and *will not work*. and others are not defined and *will not work*.
By default, percent-encoded characters within the query string will be assumed By default, percent-encoded characters within the query string will be assumed

Loading…
Cancel
Save