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

Function isIdentifier

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

Source from the content-addressed store, hash-verified

295export const literal: (value: string | number | bigint | boolean | null | undefined) => string = InternalCodegen.literal
296
297const isIdentifier = (name: string): boolean => /^[$_\p{ID_Start}][$\u200c\u200d\p{ID_Continue}]*$/u.test(name)
298
299/**
300 * Formats an object property key, using a computed key for __proto__.

Callers 3

propertyKeyFunction · 0.70
printImportsFunction · 0.70
declareMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected