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