Skip to main content
types.isProxy - node__util.d.ts - Node documentation
function types.isProxy

Usage in Deno

```typescript import { types } from "node:node__util.d.ts"; ```
isProxy(object: unknown): boolean
Returns `true` if the value is a [`Proxy`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Proxy) instance. ```js const target = {}; const proxy = new Proxy(target, {}); util.types.isProxy(target); // Returns false util.types.isProxy(proxy); // Returns true ```

Parameters

object: unknown

Return Type

boolean