lib/transformType.js
function transformObject (type) {
  const transformed = {}

  for (let key in type) {
    transformed[key] = transformType(type[key])
  }

  return transformed
}
function transformObject (type) {
  const transformed = {}

  for (let key in type) {
    transformed[key] = transformType(type[key])
  }

  return transformed
}
function transformObject ( type ) { const transformed = { } for ( let key in type ) { transformed [ key ] = transformType ( type [ key ] ) } return transformed }
Transform an object
@param  {Object}    type
@return {Object}    transformed object type
@private
Transform an object