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

Function isTable

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

Source from the content-addressed store, hash-verified

40const hasOwn = Object.prototype.hasOwnProperty
41const makeTable = (): Table => Object.create(null)
42const isTable = (value: unknown): value is Table =>
43 typeof value === "object" && value !== null && !Array.isArray(value) && !(value instanceof Date)
44const localDatePattern = /^(\d{4})-(\d{2})-(\d{2})$/
45const localTimePattern = /^(\d{2}):(\d{2})(?::(\d{2})(?:\.\d+)?)?$/
46const numericOffsetPattern = /^[+-](\d{2}):(\d{2})$/

Callers 2

resolveTableMethod · 0.85
assignMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected