Enable no-prototype-builtins lint

This commit is contained in:
valadaptive
2023-12-02 10:21:57 -05:00
parent b023312117
commit c893e2165e
12 changed files with 15 additions and 15 deletions

View File

@@ -778,7 +778,7 @@ function setOriginalDataValue(data, uid, key, value) {
for (let i = 0; i < keyParts.length - 1; i++) {
const part = keyParts[i];
if (!currentObject.hasOwnProperty(part)) {
if (!Object.hasOwn(currentObject, part)) {
currentObject[part] = {};
}