Ignore functions again

This commit is contained in:
Gregory Schier 2017-07-14 12:34:14 -07:00
parent 616d34eb8a
commit 13eb471a0c

View File

@ -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});
}