serialize.js
function set(prefix, value) {
    for (const key of keys(value)) {
      const name = prefix ? `${prefix}[${key}]` : key
      const field = value[key]

      if (isArray(field) || isPlainObject(field)) {
        set(name, field)
      } else {
        if (options.strict && (isBoolean(field) && field === false)) {
          continue
        }

        fd[method](name, field)
      }
    }
  }
function set(prefix, value) {
    for (const key of keys(value)) {
      const name = prefix ? `${prefix}[${key}]` : key
      const field = value[key]

      if (isArray(field) || isPlainObject(field)) {
        set(name, field)
      } else {
        if (options.strict && (isBoolean(field) && field === false)) {
          continue
        }

        fd[method](name, field)
      }
    }
  }
function set ( prefix , value ) { for ( const key of keys ( value ) ) { const name = prefix ? ` ${ prefix } ${ key } ` : key const field = value [ key ] if ( isArray ( field ) || isPlainObject ( field ) ) { set ( name , field ) } else { if ( options . strict && ( isBoolean ( field ) && field === false ) ) { continue } fd [ method ] ( name , field ) } } }
Set object fields to FormData instance

@param {string} [prefix = undefined] – parent field key
@param {any} value – A value of the current field

@api private
Set object fields to FormData instance