Skip to main content

@rbxts/rlog > SourceMetadata > nearest_function_name

SourceMetadata.nearest_function_name property

The nearest function name of where this was created.

Signature:

nearest_function_name?: string;

Remarks

May be undefined if we can't find one (such as reaching max depth, or a stack full of anonymous functions)

Can be used in place of function_name for getting an idea of what's going on, even in anonymous functions.

If function_name is present, this value will be the same.