Dispense with abbreviation.

This commit is contained in:
Brad Dunbar
2012-03-19 14:43:20 -04:00
parent 5c7ccb21ef
commit 5545a3b68d

View File

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