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

Function toggle

packages/effect/src/MutableRef.ts:931–931  ·  view source on GitHub ↗
(self: MutableRef<boolean>)

Source from the content-addressed store, hash-verified

929 * @since 2.0.0
930 */
931export const toggle = (self: MutableRef<boolean>): MutableRef<boolean> => update(self, (_) => !_)

Callers

nothing calls this directly

Calls 1

updateFunction · 0.50

Tested by

no test coverage detected