Value to check.
Checks if the provided value is a plain javascript object.
Value to check.
Traverses a string path for an object to find the property it is pointing to.
Once the property is found a callback function is called passing in the property's parent object and the property name.
const data = {
nested: {
anotherNested: {
property: 'value',
number: 66
}
}
};
navigateToPropertyPath(data, 'nested.anotherNested.property', (obj, property) => {
console.log(obj, property);
});
// output: {property: 'value', number: 66} property
Object to traverse.
Path to a property on the obj.
Callback to be called when the property is found.
Generated using TypeDoc
Checks if the provided value is an object.