src/core/component.js
function copyData (dest, sourceData) {
  var parsedProperty;
  var key;
  for (key in sourceData) {
    if (sourceData[key] === undefined) { continue; }
    parsedProperty = sourceData[key];
    dest[key] = isObjectOrArray(parsedProperty)
      ? utils.clone(parsedProperty)
      : parsedProperty;
  }
  return dest;
}
function copyData (dest, sourceData) {
  var parsedProperty;
  var key;
  for (key in sourceData) {
    if (sourceData[key] === undefined) { continue; }
    parsedProperty = sourceData[key];
    dest[key] = isObjectOrArray(parsedProperty)
      ? utils.clone(parsedProperty)
      : parsedProperty;
  }
  return dest;
}
function copyData ( dest , sourceData ) { var parsedProperty ; var key ; for ( key in sourceData ) { if ( sourceData [ key ] === undefined ) { continue ; } parsedProperty = sourceData [ key ] ; dest [ key ] = isObjectOrArray ( parsedProperty ) ? utils . clone ( parsedProperty ) : parsedProperty ; } return dest ; }
Clone component data.
Clone only the properties that are plain objects while keeping a reference for the rest.

@param data - Component data to clone.
@returns Cloned data.
Clone component data . Clone only the properties that are plain objects while keeping a reference for the rest .