MCPcopy
hub / github.com/Effect-TS/effect / empty

Function empty

packages/effect/src/MutableHashMap.ts:105–111  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

103 * @category constructors
104 */
105export const empty = <K = never, V = never>(): MutableHashMap<K, V> => {
106 const self = Object.create(MutableHashMapProto)
107 self.referential = new Map()
108 self.buckets = new Map()
109 self.bucketsSize = 0
110 return self
111}
112
113/**
114 * @since 2.0.0

Callers 1

fromIterableFunction · 0.70

Calls 1

createMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…