mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-10 10:57:49 +00:00
Tweak _.propertyOf usage example. [ci skip]
This commit is contained in:
@@ -10885,9 +10885,9 @@
|
|||||||
* @returns {Function} Returns the new function.
|
* @returns {Function} Returns the new function.
|
||||||
* @example
|
* @example
|
||||||
*
|
*
|
||||||
* var object = { 'user': 'fred', 'age': 40, 'active': true };
|
* var object = { 'user': 'fred', 'age': 40, 'status': 'busy' };
|
||||||
* _.map(['active', 'user'], _.propertyOf(object));
|
* _.map(['user', 'status'], _.propertyOf(object));
|
||||||
* // => [true, 'fred']
|
* // => ['fred', 'busy']
|
||||||
*
|
*
|
||||||
* var object = { 'a': 3, 'b': 1, 'c': 2 };
|
* var object = { 'a': 3, 'b': 1, 'c': 2 };
|
||||||
* _.sortBy(['a', 'b', 'c'], _.propertyOf(object));
|
* _.sortBy(['a', 'b', 'c'], _.propertyOf(object));
|
||||||
|
|||||||
Reference in New Issue
Block a user