Skip to main content

isProxy

function isProxy
Jump to headingisProxy(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 Jump to heading

Jump to headingobject: unknown

Return Type Jump to heading

boolean
Back to top