function parsePropPath(name) {
  // foo[x][y][z]
  // foo.x.y.z
  // foo-x-y-z
  // foo x y z
  return utils$1.matchAll(/\w+|\[(\w*)]/g, name).map(match => {
    return match[0] === '[]' ? '' : match[1] || match[0];
  });
}
It takes a string like `foo[x][y][z]` and returns an array like `['foo', 'x', 'y', 'z']

@param {string} name - The name of the property to get.

@returns An array of strings.