Update 0BDFDB.plugin.js

This commit is contained in:
Mirco Wittrien 2021-01-29 11:41:27 +01:00
parent a6d7ad1715
commit ea4bb83a3c
1 changed files with 1 additions and 1 deletions

View File

@ -315,7 +315,7 @@ module.exports = (_ => {
BDFDB.ObjectUtils.mirror = function (obj) {
if (!BDFDB.ObjectUtils.is(obj)) return {};
let newObj = Object.assign({}, obj);
for (let key in newObj) newObj[newObj[key]] = key;
for (let key in newObj) if (newObj[newObj[key]] == undefined && (typeof key == "number" || typeof key == "string")) newObj[newObj[key]] = key;
return newObj;
};