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

Function propertyKey

packages/effect/src/Codegen.ts:306–308  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

304 * @since 4.1.5
305 */
306export function propertyKey(name: string): string {
307 return name === "__proto__" ? `[${literal(name)}]` : isIdentifier(name) ? name : literal(name)
308}
309
310/**
311 * Formats text as a JSDoc comment and escapes embedded comment terminators.

Callers

nothing calls this directly

Calls 2

isIdentifierFunction · 0.70
literalFunction · 0.50

Tested by

no test coverage detected