We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
hasOwnProperty
1 parent cf4658f commit bc38ffdCopy full SHA for bc38ffd
index.js
@@ -21,6 +21,7 @@ exports.serialize = serialize;
21
*/
22
23
var __toString = Object.prototype.toString
24
+var __hasOwnProperty = Object.prototype.hasOwnProperty
25
26
/**
27
* RegExp to match cookie-name in RFC 6265 sec 4.1.1
@@ -130,7 +131,7 @@ function parse(str, opt) {
130
131
var key = str.slice(keyStartIdx, keyEndIdx);
132
133
// only assign once
- if (!obj.hasOwnProperty(key)) {
134
+ if (!__hasOwnProperty.call(obj, key)) {
135
var valStartIdx = startIndex(str, eqIdx + 1, endIdx);
136
var valEndIdx = endIndex(str, endIdx, valStartIdx);
137
0 commit comments