dist/umd/deparam.js
/**
     * Converts query string to JavaScript object
     * @param {string} qs query string argument (defaults to url query string)
     */
Converts query string to JavaScript object
@param {string} qs query string argument (defaults to url query string)
Converts query string to JavaScript object @param { string } qs query string argument ( defaults to url query string )
function deparam(qs, coerce) {
      var _this = this;
      qs = setDefault(qs, isBrowser ? location.search : '').trim();
      coerce = setDefault(coerce, true);
      qs = qs.substring(qs.charAt(0) === '?');
      var queryParamList = qs.split('&');
      var queryObject = {};
      if (qs) {
        queryParamList.forEach(function (qq) {
          var qArr = qq.split('=').map(function (part) {
            return decodeURIComponent(part);
          });
          if (ifComplex(qArr[0])) {
            complex.apply(_this, [].concat(qArr).concat([queryObject, coerce]));
          } else {
            simple.apply(_this, [qArr, queryObject, false, coerce]);
          }
        });
      }
      return queryObject;
    }
function deparam ( qs , coerce ) { var _this = this ; qs = setDefault ( qs , isBrowser ? location . search : '' ) . trim ( ) ; coerce = setDefault ( coerce , true ) ; qs = qs . substring ( qs . charAt ( 0 ) === '?' ) ; var queryParamList = qs . split ( '&' ) ; var queryObject = { } ; if ( qs ) { queryParamList . forEach ( function ( qq ) { var qArr = qq . split ( '=' ) . map ( function ( part ) { return decodeURIComponent ( part ) ; } ) ; if ( ifComplex ( qArr [ 0 ] ) ) { complex . apply ( _this , [ ] . concat ( qArr ) . concat ( [ queryObject , coerce ] ) ) ; } else { simple . apply ( _this , [ qArr , queryObject , false , coerce ] ) ; } } ) ; } return queryObject ; }
Converts query string to JavaScript object
 @param {string} qs query string argument (defaults to url query string)
Converts query string to JavaScript object @param { string } qs query string argument ( defaults to url query string )