A javascript library for working with objects
Gets a nested value from an object.
Param | Type | Description |
---|---|---|
object | Object |
|
path | String |
Dot delimited string |
Example
import { get } from 'object-agent';
const thing = {
a: [{
b: 'c'
}, {
b: 'd'
}]
};
get(thing, 'a.1.b');
// => 'd'