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