I'm currently making a small app to practice TypeScript and Angular. I have an array of numbers.
var numbers = [9, 10, 11, 14, 13];
I have a set of buttons, i'm looping over, each is associated to a number, what I want to accomplish is when I click one of the buttons, its number gets added to or removed from the array, depending on its starting state.
each number should only exit once.