Do not use object built-ins
This commit is contained in:
parent
d4719d5707
commit
dc669f5cd4
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user