()
| 128 | } |
| 129 | |
| 130 | entries() { |
| 131 | if (!this.prefix) return this.values.entries() |
| 132 | |
| 133 | return Array.from(this.values, (entry) => { |
| 134 | entry[0] = this.prefixKey(entry[0]) |
| 135 | return entry |
| 136 | }) |
| 137 | } |
| 138 | |
| 139 | prefixKey(key: string) { |
| 140 | if (!this.prefix) return key |