javascript
\n/**\n * Initialize your data structure here.\n */\nvar MyHashSet = function() {\n    this.set = []\n};\n\n/** \n * @param {number} key\n * @return {void}\n */
```\n/**\n * Initialize your data structure here.\n */\nvar MyHashSet = function() {\n    this.set = []\n};\n\n/** \n * @param {number} key\n * @return {void}\n */\nMyHashSet.prototype.add = function(key) {\n    if(this.set.indexOf(key) === -1){\n        this.set.push(key)\n    } \n};\n\n/** \n * @param {number} key\n * @return {void}\n */\nMyHashSet.prototype.remove = function(key) {\n    const index = this.set.indexOf(key)\n    if(index >= 0) {\n        delete this.set[index]\n    }\n};\n\n/**\n * Returns true if this set contains the specified element \n * @param {number} key\n * @return {boolean}\n */\nMyHashSet.prototype.contains = function(key) {\n    return this.set.indexOf(key) >= 0\n};\n\n/** \n * Your MyHashSet object will be instantiated and called as such:\n * var obj = Object.create(MyHashSet).createNew()\n * obj.add(key)\n * obj.remove(key)\n * var param_3 = obj.contains(key)\n */\n```
[]