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

Function formatPropertyKey

packages/effect/src/Formatter.ts:207–209  ·  view source on GitHub ↗
(name: PropertyKey)

Source from the content-addressed store, hash-verified

205 * @internal
206 */
207export function formatPropertyKey(name: PropertyKey): string {
208 return typeof name === "string" ? JSON.stringify(name) : String(name)
209}
210
211/**
212 * Formats an array of property keys as a bracket-notation path string.

Callers 7

getExpectedMethod · 0.90
encodeKeysFunction · 0.90
formatObjectLiteralKeyFunction · 0.90
onFunction · 0.90
onFunction · 0.90
recurUnsafeFunction · 0.85
formatPathFunction · 0.85

Calls 1

StringFunction · 0.70

Tested by

no test coverage detected