MCPcopy
hub / github.com/sveltejs/svelte / add

Method add

packages/svelte/src/reactivity/set.js:146–154  ·  view source on GitHub ↗

@param {T} value

(value)

Source from the content-addressed store, hash-verified

144
145 /** @param {T} value */
146 add(value) {
147 if (!super.has(value)) {
148 super.add(value);
149 set(this.#size, super.size);
150 increment(this.#version);
151 }
152
153 return this;
154 }
155
156 /** @param {T} value */
157 delete(value) {

Callers 15

set.test.tsFile · 0.45
constructorMethod · 0.45
subscribeFunction · 0.45
capture_signalsFunction · 0.45
push_reaction_valueFunction · 0.45
getFunction · 0.45
deep_readFunction · 0.45
loopFunction · 0.45
event_handleFunction · 0.45
_mountFunction · 0.45
BranchManagerClass · 0.45

Calls 3

setFunction · 0.90
incrementFunction · 0.90
hasMethod · 0.45

Tested by 2

testFunction · 0.36
testFunction · 0.36