MCPcopy Index your code
hub / github.com/formatjs/formatjs / getInternalSlots

Function getInternalSlots

packages/intl-datetimeformat/get_internal_slots.ts:14–23  ·  view source on GitHub ↗
(
  x: DateTimeFormat
)

Source from the content-addressed store, hash-verified

12>()
13
14export default function getInternalSlots(
15 x: DateTimeFormat
16): IntlDateTimeFormatInternal {
17 let internalSlots = internalSlotMap.get(x)
18 if (!internalSlots) {
19 internalSlots = Object.create(null) as IntlDateTimeFormatInternal
20 internalSlotMap.set(x, internalSlots)
21 }
22 return internalSlots
23}

Callers 2

getFunction · 0.70
core.tsFile · 0.70

Calls 2

getMethod · 0.65
setMethod · 0.65

Tested by

no test coverage detected