@mui/x-date-pickers-pro
Version:
The Pro plan edition of the Date and Time Picker components (MUI X).
16 lines (15 loc) • 448 B
JavaScript
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.excludeProps = void 0;
/* TODO: remove this when a clearable behavior for multiple input range fields is implemented */
const excludeProps = (props, excludedProps) => {
return Object.keys(props).reduce((acc, key) => {
if (!excludedProps.includes(key)) {
acc[key] = props[key];
}
return acc;
}, {});
};
exports.excludeProps = excludeProps;
;