Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/marijnh/Eloquent-JavaScript
/ constructor
Method
constructor
code/solutions/07_3_persistent_group.js:3–5 ·
view source on GitHub ↗
(members)
Source
from the content-addressed store, hash-verified
1
class
PGroup {
2
#members;
3
constructor(members) {
4
this.#members = members;
5
}
6
7
add(value) {
8
if
(this.has(value))
return
this;
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected