YuriGor / deepdash

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

pickDeep mutates argument #27

Closed masciugo closed 5 years ago

masciugo commented 5 years ago

In the following example I pass an array of paths to pickDeep and after execution it becomes an array of array! have a look to the console

https://codepen.io/masciugo/pen/MNjgra?editors=1111

YuriGor commented 5 years ago

Looks like as bug, thank you! I convert paths from string to array format internally, so possibly I override argument instead of working with a copy.

YuriGor commented 5 years ago

fixed in v4.2.11