Guest User

Untitled

a guest
Jan 23rd, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. public position: string = (this.position == "positionOne" ? "positionOne" : "positionTwo");
  2.  
  3. togglePosition = function()
  4. {this.position = !this.position}
  5.  
  6. ({ [position]: position } = { positionOne: "positionTwo", positionTwo: "positionOne" });
Add Comment
Please, Sign In to add comment