UNPKG

@vertisanpro/flowbite-react

Version:

Non-Official React components built for Flowbite and Tailwind CSS

13 lines (12 loc) 293 B
export 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; };