stuff
This commit is contained in:
parent
8b28750d06
commit
9c8046218f
File diff suppressed because one or more lines are too long
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue