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

Function isHash

packages/effect/src/Hash.ts:320–320  ·  view source on GitHub ↗
(u: unknown)

Source from the content-addressed store, hash-verified

318 * @since 2.0.0
319 */
320export const isHash = (u: unknown): u is Hash => hasProperty(u, symbol) && typeof u[symbol] === "function"
321
322const float64 = new DataView(new ArrayBuffer(8))
323

Callers 1

hashFunction · 0.85

Calls 1

hasPropertyFunction · 0.90

Tested by

no test coverage detected