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

Function toggle

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

Source from the content-addressed store, hash-verified

911 * @since 2.0.0
912 */
913export 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