We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
const obj = { "a.b": { "c": 1 } }
There are cases when object keys already have a dot in the name. It would be nice to be able to escape the dot so that the split will pass through.
So
dlv(obj, 'a\.b.c') === 1 // true
The text was updated successfully, but these errors were encountered:
For anyone encountering this issue: a workaround is to provide the lookup as an array
e.g.
const obj = { "a.b": { "c": 1 } } dlv(obj, ['a.b', 'c']) === 1 // true
edit: wording
Sorry, something went wrong.
@trijpstra-fourlights I know, I know
No branches or pull requests
There are cases when object keys already have a dot in the name.
It would be nice to be able to escape the dot so that the split will pass through.
So
The text was updated successfully, but these errors were encountered: