( obj: T, keys: K[], )
| 228 | }; |
| 229 | |
| 230 | export function omit<T extends object, K extends keyof T>( |
| 231 | obj: T, |
| 232 | keys: K[], |
| 233 | ): Omit<T, K> { |
| 234 | const result = { ...obj }; |
| 235 | for (const key of keys) { |
| 236 | // oxlint-disable-next-line no-dynamic-delete |
| 237 | delete result[key]; |
| 238 | } |
| 239 | return result; |
| 240 | } |
| 241 | |
| 242 | export function isPlainObject(value: unknown): boolean { |
| 243 | return ( |
no outgoing calls
no test coverage detected