@formatjs/intl-pluralrules
Version:
Polyfill for Intl.PluralRules
13 lines (12 loc) • 381 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = getInternalSlots;
var internalSlotMap = new WeakMap();
function getInternalSlots(x) {
var internalSlots = internalSlotMap.get(x);
if (!internalSlots) {
internalSlots = Object.create(null);
internalSlotMap.set(x, internalSlots);
}
return internalSlots;
}
;