MCPcopy Create free account
hub / github.com/alephdata/aleph / toggle

Method toggle

ui/src/app/Query.js:71–74  ·  view source on GitHub ↗
(name, value)

Source from the content-addressed store, hash-verified

69 }
70
71 toggle(name, value) {
72 const values = this.getList(name);
73 return this.set(name, _.xor(values, [value]));
74 }
75
76 add(name, value) {
77 const values = this.getList(name);

Callers 1

toggleFilterMethod · 0.95

Calls 2

getListMethod · 0.95
setMethod · 0.95

Tested by

no test coverage detected