isProxy - Node documentation
function isProxy

Usage

import { isProxy } from "node:util/types";

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