Guest User

Untitled

a guest
Aug 10th, 2018
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.14 KB | None | 0 0
  1. change property name
  2. var a = { Prop1: 'test', Prop2: 'test2' }
  3.  
  4. for(var p in r) p.propertyName = 'Prop3';
  5.  
  6. a.Prop3 = a.Prop1;
  7. delete a.Prop1;
Add Comment
Please, Sign In to add comment