validateParams.js
function(cName){
        if(validate.isEmpty(cName)){
            validateParams._warn('ignoring invalid coercion name: ' + cName);
        }
        if(validate.isFunction(validateParams.coercions[cName])){
            return validateParams.coercions[cName];
        }else{
            validateParams._warn("no coercion named '" + cName + "' defined - ignoring");
        }
        return undefined;
    }
function(cName){
        if(validate.isEmpty(cName)){
            validateParams._warn('ignoring invalid coercion name: ' + cName);
        }
        if(validate.isFunction(validateParams.coercions[cName])){
            return validateParams.coercions[cName];
        }else{
            validateParams._warn("no coercion named '" + cName + "' defined - ignoring");
        }
        return undefined;
    }
function ( cName ) { if ( validate . isEmpty ( cName ) ) { validateParams . _warn ( 'ignoring invalid coercion name: ' + cName ) ; } if ( validate . isFunction ( validateParams . coercions [ cName ] ) ) { return validateParams . coercions [ cName ] ; } else { validateParams . _warn ( "no coercion named '" + cName + "' defined - ignoring" ) ; } return undefined ; }
make sure there's always an options object local function for resolving coersion names to functions
make sure there s always an options object local function for resolving coersion names to functions