src/dt2js.js
function processNested (data, reqStack) {
  const updateWith = {}
  for (const key in data) {
    const val = data[key]

    if (val instanceof Array) {
      updateWith[key] = processArray(val, reqStack)
      continue
    }

    if (val instanceof Object) {
      updateWith[key] = schemaForm(val, reqStack, key)
      continue
    }
  }
  return updateWith
}
function processNested (data, reqStack) {
  const updateWith = {}
  for (const key in data) {
    const val = data[key]

    if (val instanceof Array) {
      updateWith[key] = processArray(val, reqStack)
      continue
    }

    if (val instanceof Object) {
      updateWith[key] = schemaForm(val, reqStack, key)
      continue
    }
  }
  return updateWith
}
function processNested ( data , reqStack ) { const updateWith = { } for ( const key in data ) { const val = data [ key ] if ( val instanceof Array ) { updateWith [ key ] = processArray ( val , reqStack ) continue } if ( val instanceof Object ) { updateWith [ key ] = schemaForm ( val , reqStack , key ) continue } } return updateWith }
Call `schemaForm` for all nested objects.

@param  {Object} data
@param  {Array} reqStack - Stack of required properties.
@returns  {Object}
Call schemaForm for all nested objects .