Skip to main content

@rbxts/expect > computeFullProxyPath

computeFullProxyPath() function

Recursively resolves the path and parent of a Proxy to create a full path from the root.

Signature:

declare function computeFullProxyPath<T>(proxy: Proxy<T>): string | undefined;

Parameters

Parameter

Type

Description

proxy

Proxy<T>

Returns:

string | undefined

Remarks

Can be used to get the full path of leaf nodes.

Example

print(computeFullProxyPath(myProxy.parent.parent.cars));

Output:

parent.parent.cars