Creates a function that returns the value at a given path of an object.
The path of the property to get.
const getObjectValue = property('a.b.c');const result = getObjectValue({ a: { b: { c: 3 } } });console.log(result); // => 3 Copy
const getObjectValue = property('a.b.c');const result = getObjectValue({ a: { b: { c: 3 } } });console.log(result); // => 3
const getObjectValue = property(['a', 'b', 'c']);const result = getObjectValue({ a: { b: { c: 3 } } });console.log(result); // => 3 Copy
const getObjectValue = property(['a', 'b', 'c']);const result = getObjectValue({ a: { b: { c: 3 } } });console.log(result); // => 3
Alias