YuriGor / deepdash

eachDeep, filterDeep, findDeep, someDeep, omitDeep, pickDeep, keysDeep etc.. Tree traversal library written in Underscore/Lodash fashion
https://deepdash.io/
MIT License
272 stars 12 forks source link

filterDeep not working on deeply nested object #125

Closed dnnsjsk closed 1 year ago

dnnsjsk commented 2 years ago

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?

YuriGor commented 2 years ago

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

dnnsjsk commented 1 year ago

That solved it, thanks!