mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-07 10:07:48 +00:00
Bump to v4.9.0.
This commit is contained in:
@@ -14,14 +14,14 @@ var baseProperty = require('./_baseProperty'),
|
||||
* @example
|
||||
*
|
||||
* var objects = [
|
||||
* { 'a': { 'b': { 'c': 2 } } },
|
||||
* { 'a': { 'b': { 'c': 1 } } }
|
||||
* { 'a': { 'b': 2 } },
|
||||
* { 'a': { 'b': 1 } }
|
||||
* ];
|
||||
*
|
||||
* _.map(objects, _.property('a.b.c'));
|
||||
* _.map(objects, _.property('a.b'));
|
||||
* // => [2, 1]
|
||||
*
|
||||
* _.map(_.sortBy(objects, _.property(['a', 'b', 'c'])), 'a.b.c');
|
||||
* _.map(_.sortBy(objects, _.property(['a', 'b'])), 'a.b');
|
||||
* // => [1, 2]
|
||||
*/
|
||||
function property(path) {
|
||||
|
||||
Reference in New Issue
Block a user