deepdash icon indicating copy to clipboard operation
deepdash copied to clipboard

findPathDeep doesn't return first Value path

Open ludonoel1 opened this issue 2 years ago • 0 comments

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

ludonoel1 avatar Oct 17 '22 09:10 ludonoel1