How can I repeat an action on all of the var objects

I have a set of objects

var seperateObjects : Transform[];

and I want to do some prep work on all of them. How can this be done? Something like ‘repeat for all the members of seperateObjects’.

Thanks in advance. (Sorry if the title doesn’t fit. I couldn’t figure out what to call it.)

for (var obj in seperateObjects)
{
// do stuff to obj
obj.position = new Vector3(0,0,0);
Debug.Log(obj.name);
}