diff --git a/papaparse.js b/papaparse.js index 4934472..6bccc95 100755 --- a/papaparse.js +++ b/papaparse.js @@ -376,8 +376,11 @@ License: MIT if (typeof obj !== 'object') return []; var keys = []; - for (var key in obj) - keys.push(key); + for (var key in obj) { + if (Object.prototype.hasOwnProperty.call(obj, key)) { + keys.push(key); + } + } return keys; }