eachDeep, filterDeep, findDeep, someDeep, omitDeep, pickDeep, keysDeep etc.. Tree traversal library written in Underscore/Lodash fashion
272
stars
12
forks
source link
findPathDeep doesn't return first Value path #139
Open
ludonoel1 opened 1 year ago
Hello, deepdash version: 5.3.9 angular: 14 My issue is very simple, findPathDeep return the last value found instead of the first one.
Exemple:
const test = { 0: [ { name: 'test1' }, { name: 'test2' }, { name: 'test3' }, { name: 'nameTest' } ], name: 'nameTest' }; let pathChild: Path = findPathDeep(test, value => value === 'nameTest');
Thank you