src/factories/BuilderUtils.js
function(key) {
    if (!key.match(suffixRegex)) {
      return key + '2';
    }

    return key.replace(suffixRegex, function(suffix) {
      return Number(suffix) + 1;
    });
  }
function(key) {
    if (!key.match(suffixRegex)) {
      return key + '2';
    }

    return key.replace(suffixRegex, function(suffix) {
      return Number(suffix) + 1;
    });
  }
function ( key ) { if ( ! key . match ( suffixRegex ) ) { return key + '2' ; } return key . replace ( suffixRegex , function ( suffix ) { return Number ( suffix ) + 1 ; } ) ; }
Iterate the given key to make it unique.

@param {String} key
Modify the component key to be unique.

@returns {String}
The new component key.
Iterate the given key to make it unique .