Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

findPathDeep doesn't return first Value path #139

Open
ludonoel1 opened this issue Oct 17, 2022 · 0 comments
Open

findPathDeep doesn't return first Value path #139

ludonoel1 opened this issue Oct 17, 2022 · 0 comments

Comments

@ludonoel1
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant