Currently, I have an array arr = [object1, object2, object3]. After removing the second index, the array now looks like arr = [object1, object3], and I am looking to add back the removed object2 at its original position in the array so that it becomes arr = [object1, object2, object3]. Can you please provide guidance on how to accomplish this task?