We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
jObj.hasOwnProperty is not a function
1 parent 9504fac commit 5d00ecfCopy full SHA for 5d00ecf
src/xmlbuilder/json2xml.js
@@ -79,7 +79,7 @@ Builder.prototype.j2x = function(jObj, level) {
79
let attrStr = '';
80
let val = '';
81
for (let key in jObj) {
82
- if(!jObj.hasOwnProperty(key)) continue;
+ if(!Object.prototype.hasOwnProperty.call(jObj, key)) continue;
83
if (typeof jObj[key] === 'undefined') {
84
// supress undefined node only if it is not an attribute
85
if (this.isAttribute(key)) {
0 commit comments