---
category: Reactivity
---
# reactiveOmit
Reactively omit fields from a reactive object.
## Usage
### Basic Usage
```ts
import { reactiveOmit } from '@vueuse/core'
const obj = reactive({
x: 0,
y: 0,
elementX: 0,
elementY: 0,
})
const picked = reactiveOmit(obj, 'x', 'elementX') // { y: number, elementY: number }
```
### Predicate Usage
```ts
import { reactiveOmit } from '@vueuse/core'
const obj = reactive({
bar: 'bar',
baz: 'should be omit',
foo: 'foo2',
qux: true,
})
const picked = reactiveOmit(obj, (value, key) => key === 'baz' || value === true)
// { bar: string, foo: string }
```
### Scenarios
#### Selectively passing props to child
```vue
```
## Type Declarations
```ts
export type ReactiveOmitReturn<
T extends object,
K extends keyof T | undefined = undefined,
> = [K] extends [undefined] ? Partial : Omit>
export type ReactiveOmitPredicate = (
value: T[keyof T],
key: keyof T,
) => boolean
export declare function reactiveOmit(
obj: T,
...keys: (K | K[])[]
): ReactiveOmitReturn
export declare function reactiveOmit(
obj: T,
predicate: ReactiveOmitPredicate,
): ReactiveOmitReturn
```