Westonci.ca is the Q&A platform that connects you with experts who provide accurate and detailed answers. Our Q&A platform provides quick and trustworthy answers to your questions from experienced professionals in different areas of expertise. Connect with a community of professionals ready to help you find accurate solutions to your questions quickly and efficiently.

it maintains the collection of all item names existing in an inventory, where each item is uniquely identified by a name. returns a new object, with three methods: add(name) - the string name parameter is passed, and it is added to the collection. it is guaranteed that at any time, if an item is in the collection, then no other item with the same name will be added to the collection.