This commit is contained in:
Mirco Wittrien 2019-08-21 17:14:23 +02:00
parent 8b28750d06
commit 9c8046218f
2 changed files with 4 additions and 5 deletions

File diff suppressed because one or more lines are too long

View File

@ -770,10 +770,9 @@ var BDFDB = {myPlugins: BDFDB && BDFDB.myPlugins ? BDFDB.myPlugins : {}, BDv2Api
};
BDFDB.mapObject = function (obj, keyname) {
if (BDFDB.isObject(obj) && typeof keyname == "string") {
var newobj;
for (let key in obj) newobj[key] = obj[key][keyname];
}
var newobj = {};
if (BDFDB.isObject(obj) && typeof keyname == "string") for (let key in obj) if (BDFDB.isObject(obj[key])) newobj[key] = obj[key][keyname];
return newobj;
};
BDFDB.deepAssign = function (obj, ...objs) {