@formatjs/intl-relativetimeformat
Version:
Formats JavaScript dates to relative time strings.
12 lines (11 loc) • 356 B
JavaScript
// Type-only circular import
// eslint-disable-next-line import/no-cycle
var internalSlotMap = new WeakMap();
export default function getInternalSlots(x) {
var internalSlots = internalSlotMap.get(x);
if (!internalSlots) {
internalSlots = Object.create(null);
internalSlotMap.set(x, internalSlots);
}
return internalSlots;
}