function findAttributesInAllGeometries(instances, propertyName) {
  const length = instances.length;

  const attributesInAllGeometries = {};

  const attributes0 = instances[0][propertyName].attributes;
  let name;

  for (name in attributes0) {
    if (
      attributes0.hasOwnProperty(name) &&
      defined(attributes0[name]) &&
      defined(attributes0[name].values)
    ) {
      const attribute = attributes0[name];
      let numberOfComponents = attribute.values.length;
      let inAllGeometries = true;

      // Does this same attribute exist in all geometries?
      for (let i = 1; i < length; ++i) {
        const otherAttribute = instances[i][propertyName].attributes[name];

        if (
          !defined(otherAttribute) ||
          attribute.componentDatatype !== otherAttribute.componentDatatype ||
          attribute.componentsPerAttribute !==
            otherAttribute.componentsPerAttribute ||
          attribute.normalize !== otherAttribute.normalize
        ) {
          inAllGeometries = false;
          break;
        }

        numberOfComponents += otherAttribute.values.length;
      }

      if (inAllGeometries) {
        attributesInAllGeometries[name] = new GeometryAttribute({
          componentDatatype: attribute.componentDatatype,
          componentsPerAttribute: attribute.componentsPerAttribute,
          normalize: attribute.normalize,
          values: ComponentDatatype.createTypedArray(
            attribute.componentDatatype,
            numberOfComponents,
          ),
        });
      }
    }
  }

  return attributesInAllGeometries;
}
Transforms a geometry instance to world coordinates.  This changes
the instance's <code>modelMatrix</code> to {@link Matrix4.IDENTITY} and transforms the
following attributes if they are present: <code>position</code>, <code>normal</code>,
<code>tangent</code>, and <code>bitangent</code>.

@param {GeometryInstance} instance The geometry instance to modify.
@returns {GeometryInstance} The modified <code>instance</code> argument, with its attributes transforms to world coordinates.

@example
Cesium.GeometryPipeline.transformToWorldCoordinates(instance);