getProxyPath() function
Safely gets the path of a proxy, without triggering any metamethods.
Signature:
declare function getProxyPath<T = unknown>(proxy: Proxy<T>): string | undefined;
Parameters
Parameter | Type | Description |
---|---|---|
proxy | Proxy<T> | The proxy to get the path of. |
Returns:
string | undefined
The path of this proxy, or undefined if it was absent.