Skip to main content
types.isProxy - util - Node documentation
function types.isProxy

Usage in Deno

import { types } from "node:util";
isProxy(object: unknown): boolean

Returns true if the value is a Proxy instance.

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
Back to top