@commodo/fields-storage-ref
Version:
We're working hard to get all the docs in order. New articles will be added daily.
21 lines (16 loc) • 322 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _default = value => {
if (!value) {
return null;
}
if (typeof value === "string") {
return value;
}
return value.id;
};
exports.default = _default;
//# sourceMappingURL=getIdFromValue.js.map