@chakra-ui/react
Version:
Responsive and accessible React UI components built with React and Emotion
17 lines (14 loc) • 481 B
JavaScript
;
;
const EMPTY_OBJECT = Object.freeze(/* @__PURE__ */ Object.create(null));
const EMPTY_ARRAY = Object.freeze([]);
function createEmptyObject() {
return /* @__PURE__ */ Object.create(null);
}
function getEmptyObject(mutable = false) {
return mutable ? createEmptyObject() : EMPTY_OBJECT;
}
exports.EMPTY_ARRAY = EMPTY_ARRAY;
exports.EMPTY_OBJECT = EMPTY_OBJECT;
exports.createEmptyObject = createEmptyObject;
exports.getEmptyObject = getEmptyObject;