MCPcopy
hub / github.com/formatjs/formatjs / isLiteralPart

Function isLiteralPart

packages/ecma402-abstract/utils.ts:71–75  ·  view source on GitHub ↗
(
  patternPart: LiteralPart | {type: string; value?: string}
)

Source from the content-addressed store, hash-verified

69}
70
71export function isLiteralPart(
72 patternPart: LiteralPart | {type: string; value?: string}
73): patternPart is LiteralPart {
74 return patternPart.type === 'literal'
75}
76
77/*
78 17 ECMAScript Standard Built-in Objects:

Callers 1

deconstructPatternFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected