Skip to main content
Version: v2.2.0

proxy.isExtensible

Type: ProxyIsExtensibleEvent

Fired when checking if new properties can be added to the proxy.

Data Properties​

target​

Traceable

The underlying target object.

result​

boolean

Indicates whether the target object is extensible (i.e., whether new properties can be added).

Example​

import { Nexo } from "nexos";
import type * as nx from "nexos";

const nexo = new Nexo();
const proxy = nexo.create({});

nexo.on("proxy.isExtensible", (event: nx.ProxyIsExtensibleEvent) => {
console.log("Checking extensibility");
});

Object.isExtensible(proxy); // Logs: Checking extensibility