* What is the index of the given string in the array? * * @param String aStr
(aStr)
| 69 | * @param String aStr |
| 70 | */ |
| 71 | indexOf(aStr) { |
| 72 | const idx = this._set.get(aStr); |
| 73 | if (idx >= 0) { |
| 74 | return idx; |
| 75 | } |
| 76 | throw new Error('"' + aStr + '" is not in the set.'); |
| 77 | } |
| 78 | |
| 79 | /** |
| 80 | * What is the element at the given index? |
no outgoing calls
no test coverage detected