keepIfEmpty not working as explained for filterDeep #96
Replies: 4 comments
-
Hi, could you also provide sample data? |
Beta Was this translation helpful? Give feedback.
-
No response, closing for now. |
Beta Was this translation helpful? Give feedback.
-
Sorry for not replying sooner, I found that this did what I needed it to do:
|
Beta Was this translation helpful? Give feedback.
-
Cool, welcome back if anything |
Beta Was this translation helpful? Give feedback.
-
Could just be how I've interpreted it, but:
_.filterDeep(arr, Boolean, { leavesOnly: true, onFalse: { keepIfEmpty: true } })
still removes empty objects
Beta Was this translation helpful? Give feedback.
All reactions