typo
This commit is contained in:
parent
d4b3c135cc
commit
081d7b2dff
1 changed files with 1 additions and 1 deletions
|
@ -25,7 +25,7 @@ messages.shift();
|
|||
// now readMessages has 1 element (technically memory may be cleaned later)
|
||||
```
|
||||
|
||||
The `WeakSet` allows to store a set of messages and easily check for the existance of a message in it.
|
||||
The `WeakSet` allows to store a set of messages and easily check for the existence of a message in it.
|
||||
|
||||
It cleans up itself automatically. The tradeoff is that we can't iterate over it, can't get "all read messages" from it directly. But we can do it by iterating over all messages and filtering those that are in the set.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue