diff --git a/lib/models/dataview/overviews/aggregation.js b/lib/models/dataview/overviews/aggregation.js index dc5fbcdc..da988731 100644 --- a/lib/models/dataview/overviews/aggregation.js +++ b/lib/models/dataview/overviews/aggregation.js @@ -232,7 +232,7 @@ Aggregation.prototype._checkOptions = function (options) { } const requiredOptions = VALID_OPERATIONS[options.aggregation]; - const missingOptions = requiredOptions.filter(requiredOption => !options.hasOwnProperty(requiredOption)); + const missingOptions = requiredOptions.filter(requiredOption => !Object.prototype.hasOwnProperty.call(options, requiredOption)); if (missingOptions.length > 0) { throw new Error(