function getStringFromComponentPath(path) {
  if (!_.isArray(path)) {
    return path;
  }
  let strPath = '';
  path.forEach((part, i) => {
    if (_.isNumber(part)) {
      strPath += `[${part}]`;
    }
    else {
      strPath += i === 0 ? part : `.${part}`;
    }
  });
  return strPath;
}
Takes an array of component path indexes, and returns a string version of that array.
@param {Array<number>} path - The path array to convert to a string.
@returns {string} - The string version of the path.