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

Function isEmpty

packages/effect/src/TxHashMap.ts:632–636  ·  view source on GitHub ↗
(self: TxHashMap<K, V>)

Source from the content-addressed store, hash-verified

630 * @since 2.0.0
631 */
632export const isEmpty = <K, V>(self: TxHashMap<K, V>): Effect.Effect<boolean> =>
633 Effect.gen(function*() {
634 const map = yield* TxRef.get(self.ref)
635 return HashMap.isEmpty(map)
636 })
637
638/**
639 * Checks whether the TxHashMap is non-empty.

Callers 1

isNonEmptyFunction · 0.70

Calls 2

getMethod · 0.65
isEmptyMethod · 0.65

Tested by

no test coverage detected