src/object.js
function getValue(object, prop) {
  if (!(object && object[prop])) {
    return null;
  }
  return _.isFunction(object[prop]) ? object[prop]() : object[prop];
}
function getValue(object, prop) {
  if (!(object && object[prop])) {
    return null;
  }
  return _.isFunction(object[prop]) ? object[prop]() : object[prop];
}
function getValue ( object , prop ) { if ( ! ( object && object [ prop ] ) ) { return null ; } return _ . isFunction ( object [ prop ] ) ? object [ prop ] ( ) : object [ prop ] ; }
Helper function to get a value from a Backbone object as a property or as a function.
Helper function to get a value from a Backbone object as a property or as a function .