stringifyRequestData(data) {
    function encode(v) {
      return v == null ? '' : encodeURIComponent(v);
    }
    const output = [];

    for (const i in data) {
      if (hasOwn(data, i)) {
        if (utils.isObject(data[i])) {
          let hasProps = false;
          for (const ii in data[i]) {
            if (hasOwn(data[i], ii)) {
              hasProps = true;
              output.push(`${encode(`${i}[${ii}]`)}=${encode(data[i][ii])}`);
            }
          }
          if (!hasProps) {
            output.push(`${encode(i)}=${encode('')}`);
          }
        } else if (Array.isArray(data[i])) {
          for (let a = 0, l = data[i].length; a < l; a += 1) {
            output.push(`${encode(`${i}[]`)}=${encode(data[i][a])}`);
          }
        } else {
          output.push(`${encode(i)}=${encode(data[i])}`);
        }
      }
    }

    return output.join('&');
  }
/**
   * Stringifies an Object, accommodating a single-level of nested objects
   * (forming the conventional key "parent[child]=value")
   */
Stringifies an Object, accommodating a single-level of nested objects
(forming the conventional key "parent[child]=value")
Stringifies an Object accommodating a single - level of nested objects ( forming the conventional key " parent [ child ] = value " )
stringifyRequestData(data) {
    function encode(v) {
      return v == null ? '' : encodeURIComponent(v);
    }
    const output = [];
    for (const i in data) {
      if (hasOwn(data, i)) {
        if (utils.isObject(data[i])) {
          let hasProps = false;
          for (const ii in data[i]) {
            if (hasOwn(data[i], ii)) {
              hasProps = true;
              output.push(`${encode(`${i}[${ii}]`)}=${encode(data[i][ii])}`);
            }
          }
          if (!hasProps) {
            output.push(`${encode(i)}=${encode('')}`);
          }
        } else if (Array.isArray(data[i])) {
          for (let a = 0, l = data[i].length; a < l; a += 1) {
            output.push(`${encode(`${i}[]`)}=${encode(data[i][a])}`);
          }
        } else {
          output.push(`${encode(i)}=${encode(data[i])}`);
        }
      }
    }
    return output.join('&');
  }
stringifyRequestData ( data ) { function encode ( v ) { return v == null ? '' : encodeURIComponent ( v ) ; } const output = [ ] ; for ( const i in data ) { if ( hasOwn ( data , i ) ) { if ( utils . isObject ( data [ i ] ) ) { let hasProps = false ; for ( const ii in data [ i ] ) { if ( hasOwn ( data [ i ] , ii ) ) { hasProps = true ; output . push ( ` ${ encode ( ` ${ i } ${ ii } ` ) } ${ encode ( data [ i ] [ ii ] ) } ` ) ; } } if ( ! hasProps ) { output . push ( ` ${ encode ( i ) } ${ encode ( '' ) } ` ) ; } } else if ( Array . isArray ( data [ i ] ) ) { for ( let a = 0 , l = data [ i ] . length ; a < l ; a += 1 ) { output . push ( ` ${ encode ( ` ${ i } ` ) } ${ encode ( data [ i ] [ a ] ) } ` ) ; } } else { output . push ( ` ${ encode ( i ) } ${ encode ( data [ i ] ) } ` ) ; } } } return output . join ( '&' ) ; }
Stringifies an Object, accommodating a single-level of nested objects
 (forming the conventional key "parent[child]=value")
Stringifies an Object accommodating a single - level of nested objects ( forming the conventional key " parent [ child ] = value " )