Rename getValue to result.

This commit is contained in:
Brad Dunbar
2012-03-19 14:33:38 -04:00
parent d0e7b397c1
commit 5c7ccb21ef
3 changed files with 12 additions and 12 deletions

View File

@@ -874,7 +874,7 @@
};
// Get a value from an object as a property or as a function.
_.getValue = function(object, prop) {
_.result = function(object, prop) {
if (object == null) return null;
var value = object[prop];
return _.isFunction(value) ? value() : value;