flowbite-react
Version:
Official React components built for Flowbite and Tailwind CSS
17 lines (16 loc) • 407 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.omit = void 0;
const omit = (keys) => (obj) => {
const result = {};
for (const key in obj) {
// @ts-expect-error - bypass
if (keys.includes(key)) {
continue;
}
// @ts-expect-error - bypass
result[key] = obj[key];
}
return result;
};
exports.omit = omit;
;