MCPcopy Create free account
hub / github.com/braziljs/eloquente-javascript / add

Method add

code/solutions/07_3_persistent_group.js:7–10  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

5 }
6
7 add(value) {
8 if (this.has(value)) return this;
9 return new PGroup(this.#members.concat([value]));
10 }
11
12 delete(value) {
13 if (!this.has(value)) return this;

Callers 1

Calls 1

hasMethod · 0.95

Tested by

no test coverage detected