quantum-html/lib/index.js
function prepareTransforms (entityTransforms, namespace, target) {
  const resolvedNamespace = namespace || ''
  const resolvedTarget = target || {}
  for (const d in entityTransforms) {
    if (typeof (entityTransforms[d]) === 'function') {
      resolvedTarget[resolvedNamespace + d] = entityTransforms[d]
      resolvedTarget[d] = entityTransforms[d]
    } else {
      prepareTransforms(entityTransforms[d], resolvedNamespace + d + '.', resolvedTarget)
    }
  }

  return resolvedTarget
}
function prepareTransforms (entityTransforms, namespace, target) {
  const resolvedNamespace = namespace || ''
  const resolvedTarget = target || {}
  for (const d in entityTransforms) {
    if (typeof (entityTransforms[d]) === 'function') {
      resolvedTarget[resolvedNamespace + d] = entityTransforms[d]
      resolvedTarget[d] = entityTransforms[d]
    } else {
      prepareTransforms(entityTransforms[d], resolvedNamespace + d + '.', resolvedTarget)
    }
  }

  return resolvedTarget
}
function prepareTransforms ( entityTransforms , namespace , target ) { const resolvedNamespace = namespace || '' const resolvedTarget = target || { } for ( const d in entityTransforms ) { if ( typeof ( entityTransforms [ d ] ) === 'function' ) { resolvedTarget [ resolvedNamespace + d ] = entityTransforms [ d ] resolvedTarget [ d ] = entityTransforms [ d ] } else { prepareTransforms ( entityTransforms [ d ] , resolvedNamespace + d + '.' , resolvedTarget ) } } return resolvedTarget }
flattens out namespaced renderers into a single object
flattens out namespaced renderers into a single object