mirror of
https://github.com/Kong/insomnia.git
synced 2026-10-10 15:32:10 -04:00
Ignore functions again
This commit is contained in:
1 parent
616d34eb8a
commit
13eb471a0c
1 file changed
+2
@@ -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});
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user