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

Usage in Deno

```typescript import { isProxy } from "node:node__util--types.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