fix(core): update
This commit is contained in:
parent
1ae72169b2
commit
b4f780216f
@ -1,6 +1,9 @@
|
||||
export const toFlatObject = (objectArg: object) => {
|
||||
const returnObject: {[key: string]: any} = {};
|
||||
const extractLayer = (subObject: {[key: string]: any}, pathArg: string, loopProtection: object[]) => {
|
||||
if (loopProtection.indexOf(subObject) > -1) {
|
||||
return;
|
||||
}
|
||||
if (subObject)
|
||||
for (const key of Object.keys(subObject)) {
|
||||
let localPathArg = pathArg;
|
||||
|
Loading…
Reference in New Issue
Block a user