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