validateParams.js
function(value, options){
        if(validate.isObject(options) && options.onlyCoercePrimitives && !validateParams.isPrimitive(value)){
            return value;
        }
        if(validate.isEmpty(value)) return '';
        return String(value);
    }
function(value, options){
        if(validate.isObject(options) && options.onlyCoercePrimitives && !validateParams.isPrimitive(value)){
            return value;
        }
        if(validate.isEmpty(value)) return '';
        return String(value);
    }
function ( value , options ) { if ( validate . isObject ( options ) && options . onlyCoercePrimitives && ! validateParams . isPrimitive ( value ) ) { return value ; } if ( validate . isEmpty ( value ) ) return '' ; return String ( value ) ; }
A coercion for converting any arbitrary value to a string.

Empty values, as per the [validate.isEmpty()]{@link external:isEmpty}
function from validate.js will be coerced to an empty string, other
values will be cast to a string using JavaScript's `String()` function.

It's possible to ristrict the coercion to primitive types only by setting
the coercion option `onlyCoercePrimitives` to a truthy value. In this
case, all vales with a `typeof` other than `string`, `boolean` or
`number` will be passed through un-altered.

@member
@type {CoercionCallback}
A coercion for converting any arbitrary value to a string .