mirror of
https://github.com/Kong/insomnia
synced 2024-11-07 22:30:15 +00:00
Ignore functions again
This commit is contained in:
parent
616d34eb8a
commit
13eb471a0c
@ -19,6 +19,8 @@ export function getKeys (obj, prefix = '') {
|
||||
const newPrefix = prefix ? `${prefix}.${key}` : key;
|
||||
allKeys = [...allKeys, ...getKeys(obj[key], newPrefix)];
|
||||
}
|
||||
} else if (typeOfObj === '[object Function]') {
|
||||
// Ignore functions
|
||||
} else if (prefix) {
|
||||
allKeys.push({name: prefix, value: obj});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user