mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-12 20:07:49 +00:00
Remove references to _.
This commit is contained in:
@@ -1,11 +1,10 @@
|
||||
import baseGet from './_baseGet.js';
|
||||
|
||||
/**
|
||||
* The opposite of `_.property`; this method creates a function that returns
|
||||
* The opposite of `property`; this method creates a function that returns
|
||||
* the value at a given path of `object`.
|
||||
*
|
||||
* @static
|
||||
* @memberOf _
|
||||
* @since 3.0.0
|
||||
* @category Util
|
||||
* @param {Object} object The object to query.
|
||||
@@ -15,10 +14,10 @@ import baseGet from './_baseGet.js';
|
||||
* var array = [0, 1, 2],
|
||||
* object = { 'a': array, 'b': array, 'c': array };
|
||||
*
|
||||
* _.map(['a[2]', 'c[0]'], _.propertyOf(object));
|
||||
* map(['a[2]', 'c[0]'], propertyOf(object));
|
||||
* // => [2, 0]
|
||||
*
|
||||
* _.map([['a', '2'], ['c', '0']], _.propertyOf(object));
|
||||
* map([['a', '2'], ['c', '0']], propertyOf(object));
|
||||
* // => [2, 0]
|
||||
*/
|
||||
function propertyOf(object) {
|
||||
|
||||
Reference in New Issue
Block a user