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

Support for circular references? #29

Open
cressie176 opened this issue Mar 13, 2024 · 0 comments
Open

Support for circular references? #29

cressie176 opened this issue Mar 13, 2024 · 0 comments

Comments

@cressie176
Copy link

Hello. Thank you for writing these modules, I was previously using dot-path, but am unable to since it moved to ESM.

One thing I've noticed about get-value is that it doesn't support circular references. The following two examples result in undefined

const get = require('get-value')
const a = {};
a.b = a;
get(a, 'a.b'); // undefined
const get = require('get-value')
const a = { c: 1 };
a.b = a;
get(a, 'a.b.c')  // undefined

Was this intentional?

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