Replace .hasOwn() with .hasOwnProperty() (#2882)
This commit is contained in:
parent
489f7ba98b
commit
1d4033201e
1 changed files with 4 additions and 1 deletions
|
@ -77,7 +77,10 @@ const isAttributeArray = (value: any) => {
|
|||
}
|
||||
|
||||
return value.some(
|
||||
(e) => Object.hasOwn(e, "key") && Object.hasOwn(e, "value")
|
||||
(e) =>
|
||||
// TODO: Use Object.hasOwn() when Firefox ESR supports it.
|
||||
Object.prototype.hasOwnProperty.call(e, "key") &&
|
||||
Object.prototype.hasOwnProperty.call(e, "value")
|
||||
);
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue