MCPcopy Create free account
hub / github.com/Effect-TS/effect / remove

Method remove

packages/effect/src/unstable/reactivity/AtomRef.ts:340–347  ·  view source on GitHub ↗
(ref: AtomRef<A>)

Source from the content-addressed store, hash-verified

338 }
339
340 remove(ref: AtomRef<A>) {
341 const index = this.value.indexOf(ref)
342 if (index !== -1) {
343 this.value.splice(index, 1)
344 this.notify(this.value)
345 }
346 return this
347 }
348
349 toArray() {
350 return this.value.map((ref) => ref.value)

Callers

nothing calls this directly

Calls 1

notifyMethod · 0.95

Tested by

no test coverage detected