C# Array of OtherArray's Meshes

Hi everyone, I’ve been trying to create an Array of SomeTransformArray’s Meshes. I’m getting an error from the console saying Transform doesn’t contain a definition of GetComponent. What is wrong with my code?

    public Transform[] someTransformArray;
    public Mesh[] someTransformArrayMeshes;

    void Awake(){

    	someTransformArray = GetComponentsInChildren<Transform>();
		
	for (int a = 0; a < someTransformArray.Length; a++)
	someTransformArrayMeshes = someTransformArray.GetComponent<MeshFilter>().sharedMesh[a];

}

someTransformArrayMeshes and someTransformArray are both declared as arrays, which as the error message says do not contain a definition for GetComponent, and in any case you should specify the particular object you want to access in the array. So you should change your line 9 to something like:

someTransformArrayMeshes[a] = someTransformArray[a].GetComponent<MeshFilter>().sharedMesh;