Replaced _.has() with native Object.prototype.hasOwnProperty.call()

This commit is contained in:
djmaze 2020-07-20 22:06:21 +02:00
parent 84ac7dc893
commit 756fe81091
3 changed files with 4 additions and 6 deletions

View file

@ -6,7 +6,6 @@ import {
noop,
trim,
log,
has,
isArray,
isUnd,
isNormal,
@ -703,7 +702,7 @@ class AppUser extends AbstractApp {
if (data.Result.Flags) {
for (uid in data.Result.Flags) {
if (has(data.Result.Flags, uid)) {
if (Object.prototype.hasOwnProperty.call(data.Result.Flags, uid)) {
check = true;
const flags = data.Result.Flags[uid];
storeMessageFlagsToCacheByFolderAndUid(folderFromCache.fullNameRaw, uid.toString(), [