mt-flowbite-react
Version:
Official React components built for Flowbite and Tailwind CSS
16 lines (15 loc) • 404 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.omit = void 0;
const omit = (keys) => (obj) => {
const result = {};
Object.keys(obj).forEach((key) => {
//@ts-expect-error - Somehow TS does not like this.
if (keys.includes(key)) {
return;
}
result[key] = obj[key];
});
return result;
};
exports.omit = omit;
;