docs/theme/initialize.js
function updateStructure(targetObject, object) {
  for (const componentName in object) {
    if (object.hasOwnProperty(componentName)) {
      for (const styleName in object[componentName]) {
        if (object[componentName].hasOwnProperty(styleName)) {
          targetObject[componentName][styleName] = object[componentName][styleName]; // eslint-disable-line no-param-reassign
        }
      }
    }
  }
}
function updateStructure(targetObject, object) {
  for (const componentName in object) {
    if (object.hasOwnProperty(componentName)) {
      for (const styleName in object[componentName]) {
        if (object[componentName].hasOwnProperty(styleName)) {
          targetObject[componentName][styleName] = object[componentName][styleName]; // eslint-disable-line no-param-reassign
        }
      }
    }
  }
}
function updateStructure ( targetObject , object ) { for ( const componentName in object ) { if ( object . hasOwnProperty ( componentName ) ) { for ( const styleName in object [ componentName ] ) { if ( object [ componentName ] . hasOwnProperty ( styleName ) ) { targetObject [ componentName ] [ styleName ] = object [ componentName ] [ styleName ] ; // eslint-disable-line no-param-reassign } } } } }
Updates the deepest structure while keeping the original reference of the outer objects.
Updates the deepest structure while keeping the original reference of the outer objects .