API reference / @evolu/common / Object / excludeProp
Function: excludeProp()
function excludeProp<T, K>(obj, prop, condition?): Omit<T, K>;
Defined in: packages/common/src/Object.ts:54
Conditionally excludes a property from an object.
Type Parameters
| Type Parameter | 
|---|
| Textendsobject | 
| Kextendsstring|number|symbol | 
Parameters
| Parameter | Type | 
|---|---|
| obj | T | 
| prop | K | 
| condition? | boolean | 
Returns
Omit<T, K>