MM-61893 Replace usage of hasOwnProperty with Object.hasOwn (#29428)
* MM-61893 Replace usage of hasOwnProperty with Object.hasOwn * Update type guard in messageToElement * Replace a couple more hasOwnProperty calls
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
3ed209a34d
Коммит
8533350a91
@@ -149,7 +149,7 @@ function removeFromFiles(files = {}, filesToRemove = []) {
|
||||
|
||||
const removedFiles = intersection(Object.keys(testFilesObject), filesToRemove);
|
||||
removedFiles.forEach((file) => {
|
||||
if (testFilesObject.hasOwnProperty(file)) {
|
||||
if (Object.hasOwn(testFilesObject, file)) {
|
||||
delete testFilesObject[file];
|
||||
}
|
||||
});
|
||||
|
||||
Ссылка в новой задаче
Block a user