Creates a function that returns the value at path of a given object.
path
The path of the property to get.
5.0.0
const objects = [ { 'a': { 'b': 2 } }, { 'a': { 'b': 1 } }]map(objects, property('a.b'))// => [2, 1]map(sortBy(objects, property(['a', 'b'])), 'a.b')// => [1, 2] Copy
const objects = [ { 'a': { 'b': 2 } }, { 'a': { 'b': 1 } }]map(objects, property('a.b'))// => [2, 1]map(sortBy(objects, property(['a', 'b'])), 'a.b')// => [1, 2]
Creates a function that returns the value at
path
of a given object.