Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public position: string = (this.position == "positionOne" ? "positionOne" : "positionTwo");
- togglePosition = function()
- {this.position = !this.position}
- ({ [position]: position } = { positionOne: "positionTwo", positionTwo: "positionOne" });
Add Comment
Please, Sign In to add comment