Created
September 7, 2021 19:04
-
-
Save jhunterkohler/1987a5e5b414771b675aa13db0b0ecf9 to your computer and use it in GitHub Desktop.
FrozenSet: An overly simply helper class
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| export class FrozenSet extends Set { | |
| clone() { | |
| return new FrozenSet(this); | |
| } | |
| } | |
| FrozenSet.prototype.add = undefined; | |
| FrozenSet.prototype.delete = undefined; | |
| FrozenSet.prototype.clear = undefined; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment