Get a value at a path in an object.
The object to get the value from.
The path to get the value from.
Optional
The options for getting the value.
The value at the path, or undefined if not found.
undefined
const obj = { a: { b: { c: 1 } } };const value = getAtPath(obj, "a.b.c");console.log(value); // 1 Copy
const obj = { a: { b: { c: 1 } } };const value = getAtPath(obj, "a.b.c");console.log(value); // 1
Get a value at a path in an object.