lib/web.route.handler.js
function setDefaults(model, defaults) {
    if (!defaults) { return; }

    _.each(defaults, function (value, key) {
        if (model[key] === undefined) {
            model[key] = value;
        }
    });
}
function setDefaults(model, defaults) {
    if (!defaults) { return; }

    _.each(defaults, function (value, key) {
        if (model[key] === undefined) {
            model[key] = value;
        }
    });
}
function setDefaults ( model , defaults ) { if ( ! defaults ) { return ; } _ . each ( defaults , function ( value , key ) { if ( model [ key ] === undefined ) { model [ key ] = value ; } } ) ; }
If a default value doesn't exist in the model, set it
@param model
@param defaults
If a default value doesn t exist in the model set it