keepIfEmpty not working as explained for filterDeep #96
Unanswered
aariacarterweir
asked this question in
Q&A
Replies: 4 comments
|
Hi, could you also provide sample data? |
0 replies
|
No response, closing for now. |
0 replies
|
Sorry for not replying sooner, I found that this did what I needed it to do:
|
0 replies
|
Cool, welcome back if anything |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Could just be how I've interpreted it, but:
_.filterDeep(arr, Boolean, { leavesOnly: true, onFalse: { keepIfEmpty: true } })still removes empty objects
All reactions