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
a.b\\.c.arr.2
import deep from './deep.json' import _has from "has-value"; import _unset from "unset-value"; import _get, { Options } from 'get-value'; let paths = 'a.b\\.c.arr.2'; expect(_has(deep, paths as any)).to.be.ok; expect(_get(deep, paths as any)).to.be.deep.equal({ d: { e: { arr: [ { f: false }, { f: false } ] } } } ); _unset(deep, paths as any)
deep.json
{ "a": { "b.c": { "arr": [ { "d": { "e": { "arr": [ { "f": true }, { "f": true } ] } }, "x": false }, { "d": { "e": { "arr": [ { "f": false }, { "f": false } ] } } }, { "d": { "e": { "arr": [ { "f": false }, { "f": false } ] } } } ] }, "b": { "c": { "arr": [ { "d": { "e": { "arr": [ { "f": true }, { "f": true } ] } }, "x": true }, { "d": { "e": { "arr": [ { "f": false }, { "f": false } ] } } }, { "d": { "e": { "arr": [ { "f": false }, { "f": false } ] } } } ] } } } }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
deep.json
The text was updated successfully, but these errors were encountered: