* This method returns a string representation of the index. * @param indent - Whether to indent the string representation. * @returns A string representation of the index.
(indent = false)
| 180 | * @returns A string representation of the index. |
| 181 | */ |
| 182 | toString(indent = false): string { |
| 183 | return `Index(${JSON.stringify( |
| 184 | [...this.entries()], |
| 185 | undefined, |
| 186 | indent ? 2 : undefined, |
| 187 | )})` |
| 188 | } |
| 189 | |
| 190 | /** |
| 191 | * The size of the index. |