dist/susanin.js
function(params, sep, eq) {
        var query = '',
            value,
            typeOf,
            tmpArray,
            i, size, key;

        if ( ! params) {
            return query;
        }

        sep || (sep = '&');
        eq || (eq = '=');

        for (key in params) {
            if (hasOwnProp.call(params, key)) {
                tmpArray = [].concat(params[key]);
                for (i = 0, size = tmpArray.length; i < size; ++i) {
                    typeOf = typeof tmpArray[i];

                    if (typeOf === 'object' || typeOf === 'undefined') {
                        value = '';
                    } else {
                        value = encodeURIComponent(tmpArray[i]);
                    }

                    query += sep + encodeURIComponent(key) + eq + value;
                }
            }
        }

        return query.substr(sep.length);
    }
function(params, sep, eq) {
        var query = '',
            value,
            typeOf,
            tmpArray,
            i, size, key;

        if ( ! params) {
            return query;
        }

        sep || (sep = '&');
        eq || (eq = '=');

        for (key in params) {
            if (hasOwnProp.call(params, key)) {
                tmpArray = [].concat(params[key]);
                for (i = 0, size = tmpArray.length; i < size; ++i) {
                    typeOf = typeof tmpArray[i];

                    if (typeOf === 'object' || typeOf === 'undefined') {
                        value = '';
                    } else {
                        value = encodeURIComponent(tmpArray[i]);
                    }

                    query += sep + encodeURIComponent(key) + eq + value;
                }
            }
        }

        return query.substr(sep.length);
    }
function ( params , sep , eq ) { var query = '' , value , typeOf , tmpArray , i , size , key ; if ( ! params ) { return query ; } sep || ( sep = '&' ) ; eq || ( eq = '=' ) ; for ( key in params ) { if ( hasOwnProp . call ( params , key ) ) { tmpArray = [ ] . concat ( params [ key ] ) ; for ( i = 0 , size = tmpArray . length ; i < size ; ++ i ) { typeOf = typeof tmpArray [ i ] ; if ( typeOf === 'object' || typeOf === 'undefined' ) { value = '' ; } else { value = encodeURIComponent ( tmpArray [ i ] ) ; } query += sep + encodeURIComponent ( key ) + eq + value ; } } } return query . substr ( sep . length ) ; }
Build querystring from object
@link http://nodejs.org/api/querystring.html#querystring_querystring_stringify_obj_sep_eq
@param {Object} params
@param {String} [sep='&']
@param {String} [eq='=']
@returns {String}
Build querystring from object