lib/util.js
function (obj, prop, def) {
        return _.has(obj, prop) ? obj[prop] : def;
    }
function (obj, prop, def) {
        return _.has(obj, prop) ? obj[prop] : def;
    }
function ( obj , prop , def ) { return _ . has ( obj , prop ) ? obj [ prop ] : def ; }
Returns the value of a property if defined in object, else the default

@param {Object} obj
@param {String} prop
@param {*=} def

@returns {*}
Returns the value of a property if defined in object else the default