src/factories/BuilderUtils.js
function(form, component) {
    var isNew = component.isNew || false;

    // Recurse into all child components.
    FormioUtils.eachComponent([component], function(component) {
      // Force the component isNew to be the same as the parent.
      component.isNew = isNew;

      // Skip key uniquification if this component doesn't have a key.
      if (!component.key) {
        return;
      }

      var memoization = findExistingComponents(form.components, component);
      while (keyExists(memoization, component.key)) {
        component.key = iterateKey(component.key);
      }
    }, true);

    return component;
  }
function(form, component) {
    var isNew = component.isNew || false;

    // Recurse into all child components.
    FormioUtils.eachComponent([component], function(component) {
      // Force the component isNew to be the same as the parent.
      component.isNew = isNew;

      // Skip key uniquification if this component doesn't have a key.
      if (!component.key) {
        return;
      }

      var memoization = findExistingComponents(form.components, component);
      while (keyExists(memoization, component.key)) {
        component.key = iterateKey(component.key);
      }
    }, true);

    return component;
  }
function ( form , component ) { var isNew = component . isNew || false ; // Recurse into all child components. FormioUtils . eachComponent ( [ component ] , function ( component ) { // Force the component isNew to be the same as the parent. component . isNew = isNew ; // Skip key uniquification if this component doesn't have a key. if ( ! component . key ) { return ; } var memoization = findExistingComponents ( form . components , component ) ; while ( keyExists ( memoization , component . key ) ) { component . key = iterateKey ( component . key ) ; } } , true ) ; return component ; }
Appends a number to a component.key to keep it unique

@param {Object} form
The components parent form.
@param {Object} component
The component to uniquify
Appends a number to a component . key to keep it unique