Support for circular references?
cressie176 opened this issue · 0 comments
cressie176 commented
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?