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

Function formatPath

packages/effect/src/Formatter.ts:201–203  ·  view source on GitHub ↗
(path: ReadonlyArray<PropertyKey>)

Source from the content-addressed store, hash-verified

199 * @internal
200 */
201export function formatPath(path: ReadonlyArray<PropertyKey>): string {
202 return path.map((key) => `[${formatPropertyKey(key)}]`).join("")
203}
204
205/**
206 * Formats a `Date` as an ISO 8601 string, returning `"Invalid Date"` for

Callers 2

formatIssueFunction · 0.90
errorWithPathFunction · 0.90

Calls 3

formatPropertyKeyFunction · 0.85
joinMethod · 0.80
mapMethod · 0.45

Tested by

no test coverage detected