Returns the number of items in the collection. Throws if the collection is not initialized.
()
| 337 | |
| 338 | /** Returns the number of items in the collection. Throws if the collection is not initialized. */ |
| 339 | count(): number { |
| 340 | this.checkInitialized(); |
| 341 | return this.#items.size; |
| 342 | } |
| 343 | |
| 344 | /** Returns true if the collection has no items. Throws if the collection is not initialized. */ |
| 345 | isEmpty(): boolean { |
no test coverage detected