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