Tweak _.propertyOf usage example. [ci skip]

This commit is contained in:
jdalton
2015-02-15 22:42:16 -08:00
parent b66a886682
commit 69cd56357f

View File

@@ -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));