dotty
dotty copied to clipboard
Access properties of nested objects using dot-path notation
Bumps [marked](https://github.com/markedjs/marked) from 3.0.8 to 4.0.10. Release notes Sourced from marked's releases. v4.0.10 4.0.10 (2022-01-13) Bug Fixes security: fix redos vulnerabilities (8f80657) v4.0.9 4.0.9 (2022-01-06) Bug Fixes retain line breaks...
The issue in dotty.put method, which creates not exactly the same object based on strings from 'deepKeys'. ` var dotty = require("dotty"); var testSourceObject = {group1: {childNodes: [{link: {openInNewTab: true}}]}};...
It'd be great if dotty could work with nested arrays as well, for example, with something like this: ``` javascript { some: 'property', other: [{ properties: true }, { properties:...
``` function Foo() { } Foo.settings = { a: 'abc' }; console.log(Foo.settings); // This returns {a: 'abc'} console.log(Foo['settings']); // This returns {a: 'abc'} console.log(dotty.get(Foo, 'settings')); // This returns undefined. Why?...
i needed this addition to navigate through dynamic paths and added a '
It'd be nice to have a fallback value, similar to python's dictionary [`get`](http://docs.python.org/2/library/stdtypes.html#dict.get) method.
I keep getting the following error when trying to run these two lines from the example code: ``` console.log(dotty.deepKeys(object, {leavesOnly: true})); console.log(dotty.deepKeys(object, {leavesOnly: true, asStrings: true})); ``` I don't think...
Javascript is a functional language, as such we should be able to functionally access objects. This pull request adds support for binding and currying. I have added (30) tests to...
What about a browser version?
`force = undefined` - default behavior `force = true` - forcibly create path `force = false` - do not overwrite if target value already exists