function iterateKey(key) {
  if (!key.match(/(\d+)$/)) {
    return `${key}1`;
  }

  return key.replace(/(\d+)$/, 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.