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

Function isTable

packages/effect/src/unstable/encoding/Toml.ts:38–39  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

36const hasOwn = Object.prototype.hasOwnProperty
37const makeTable = (): Table => Object.create(null)
38const isTable = (value: unknown): value is Table =>
39 typeof value === "object" && value !== null && !Array.isArray(value) && !(value instanceof Date)
40
41class TomlParser {
42 readonly root = makeTable()

Callers 2

resolveTableMethod · 0.85
assignMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected