change property name

That isn’t directly possible.

You can just write

a.Prop3 = a.Prop1;
delete a.Prop1;

Leave a Comment