deepdash
deepdash copied to clipboard
findPathDeep doesn't return first Value path
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