src/app/view-config-utils.js
/**
 * Initialize the view config:
 * - Fill in missing coordination objects with default values.
 * - Fill in missing component coordination scope mappings.
 *   based on the `initStrategy` specified in the view config.
 * Should be "stable": if run on the same view config twice, the return value the second
 * time should be identical to the return value the first time.
 * @param {object} config The view config prop.
 * @returns The initialized view config.
 */
Initialize the view config:
- Fill in missing coordination objects with default values.
- Fill in missing component coordination scope mappings.
based on the `initStrategy` specified in the view config.
Should be "stable": if run on the same view config twice, the return value the second
time should be identical to the return value the first time.
@param {object} config The view config prop.
@returns The initialized view config.
Initialize the view config : - Fill in missing coordination objects with default values . - Fill in missing component coordination scope mappings . based on the ` initStrategy ` specified in the view config . Should be " stable " : if run on the same view config twice the return value the second time should be identical to the return value the first time . @param { object } config The view config prop . @returns The initialized view config .
function initialize(config) {
  let newConfig = cloneDeep(config);
  if (newConfig.initStrategy === 'auto') {
    newConfig = initializeAuto(config);
  }
  return assignViewUids(newConfig);
}
function initialize ( config ) { let newConfig = cloneDeep ( config ) ; if ( newConfig . initStrategy === 'auto' ) { newConfig = initializeAuto ( config ) ; } return assignViewUids ( newConfig ) ; }
Initialize the view config:
 - Fill in missing coordination objects with default values.
Initialize the view config : - Fill in missing coordination objects with default values .