deepdash icon indicating copy to clipboard operation
deepdash copied to clipboard

filterDeep not working on deeply nested object

Open dnnsjsk opened this issue 2 years ago • 1 comments

Hey,

I've created a repro here: https://codepen.io/dennisj/pen/dyZgJqg?editors=0010

The fourth object "themes/blockstudio-child/blockstudio" is not being filtered. I've added all nested paths to "childrenPaths". Am I missing something here?

dnnsjsk avatar Feb 28 '22 12:02 dnnsjsk

Hi, not sure about your exact requirements, but adding option leavesOnly:false atleast makes your code return something.

YuriGor avatar Jul 16 '22 22:07 YuriGor

That solved it, thanks!

dnnsjsk avatar Sep 28 '22 00:09 dnnsjsk