includeRoot not working on filterDeep #95
Unanswered
GaborTorma
asked this question in
Q&A
Replies: 1 comment
-
Hi @GaborTorma! Also note |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
`const tree = {
id: 1,
rootKey: 'rootVal'
};
let cleaned = _.filterDeep(tree, (k, v) => k === 'rootKey' || v === 'rootVal', {includeRoot: true});
console.log(cleaned);
// get empty object
// expected result: { rootKey: 'rootVal' }`
Beta Was this translation helpful? Give feedback.
All reactions