src/deparam.js
/**
 * Restores values to their original type
 * @param {string} value undefined or string value
 */
Restores values to their original type
@param {string} value undefined or string value
Restores values to their original type @param { string } value undefined or string value
function coerce(value, skip) {
    if (value == null) return '';
    if (skip || typeof value !== 'string') return value;
    value = value.trim();
    if (isNumber(value)) return +value;
    switch (value) {
        case 'null': return null;
        case 'undefined': return undefined;
        case 'true': return true;
        case 'false': return false;
        case 'NaN': return NaN;
        default: return value;
    }
}
function coerce ( value , skip ) { if ( value == null ) return '' ; if ( skip || typeof value !== 'string' ) return value ; value = value . trim ( ) ; if ( isNumber ( value ) ) return + value ; switch ( value ) { case 'null' : return null ; case 'undefined' : return undefined ; case 'true' : return true ; case 'false' : return false ; case 'NaN' : return NaN ; default : return value ; } }
Restores values to their original type
 @param {string} value undefined or string value
Restores values to their original type @param { string } value undefined or string value