From b893bacb51a1ed11bb6ebb8c80efe6b28938748b Mon Sep 17 00:00:00 2001 From: Kashav Madan Date: Sat, 6 Aug 2016 03:53:17 -0400 Subject: [PATCH] Use hasOwnProperty from Object prototype --- lib/helpers.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/helpers.js b/lib/helpers.js index 4e4cbc2..c60ff85 100644 --- a/lib/helpers.js +++ b/lib/helpers.js @@ -38,7 +38,7 @@ exports.prepareMetaData = function(meta) { */ function cleanFieldNames(object) { for (var field in object) { - if (!object.hasOwnProperty(field)) { + if (!Object.prototype.hasOwnProperty.call(object, field)) { continue; } var value = object[field];