(event: E)
| 327 | } |
| 328 | |
| 329 | remove(event: E): boolean { |
| 330 | ++this.modCount |
| 331 | const index = this.#array.indexOf(event) |
| 332 | if (-1 === index) {return false} |
| 333 | this.#array.splice(index, 1) |
| 334 | return true |
| 335 | } |
| 336 | |
| 337 | contains(event: E): boolean { |
| 338 | const size: int = this.#array.length |