* What is the index of the given string in the array? * * @param String aStr
(aStr)
| 75 | * @param String aStr |
| 76 | */ |
| 77 | indexOf(aStr) { |
| 78 | const idx = this._set.get(aStr); |
| 79 | if (idx >= 0) { |
| 80 | return idx; |
| 81 | } |
| 82 | throw new Error('"' + aStr + '" is not in the set.'); |
| 83 | } |
| 84 | |
| 85 | /** |
| 86 | * What is the element at the given index? |
no test coverage detected