Skip to content

Instantly share code, notes, and snippets.

@jhunterkohler
Created September 7, 2021 19:04
Show Gist options
  • Select an option

  • Save jhunterkohler/1987a5e5b414771b675aa13db0b0ecf9 to your computer and use it in GitHub Desktop.

Select an option

Save jhunterkohler/1987a5e5b414771b675aa13db0b0ecf9 to your computer and use it in GitHub Desktop.
FrozenSet: An overly simply helper class
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