mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-11 03:17:49 +00:00
Remove references to _.
This commit is contained in:
@@ -7,7 +7,6 @@ import toKey from './_toKey.js';
|
||||
* Creates a function that returns the value at `path` of a given object.
|
||||
*
|
||||
* @static
|
||||
* @memberOf _
|
||||
* @since 2.4.0
|
||||
* @category Util
|
||||
* @param {Array|string} path The path of the property to get.
|
||||
@@ -19,10 +18,10 @@ import toKey from './_toKey.js';
|
||||
* { 'a': { 'b': 1 } }
|
||||
* ];
|
||||
*
|
||||
* _.map(objects, _.property('a.b'));
|
||||
* map(objects, property('a.b'));
|
||||
* // => [2, 1]
|
||||
*
|
||||
* _.map(_.sortBy(objects, _.property(['a', 'b'])), 'a.b');
|
||||
* map(sortBy(objects, property(['a', 'b'])), 'a.b');
|
||||
* // => [1, 2]
|
||||
*/
|
||||
function property(path) {
|
||||
|
||||
Reference in New Issue
Block a user