Prevent click event from adding duplicate items to an array, Vanilla JS-Twitter bootstrap
I have a set of 4 items and one button. Clicking on an item should add that item to an empty array. Then clicking the button will display the number of items selected. I've looped through the HTML Collection and…