filter argument.
true to also include tables, or pass a type name ("thread", "string", "buffer", or "table") to also include values of that type. With no argument, the list only contains functions and userdata.
Most commonly used to find functions you cant find via any other method.
Parameters
The function takes a single optional argument that can be either form below. Pass one or the other - same arg slot, mutually exclusive.
Any other string, and any other arg type, will raise an error.
Returns
{function | userdata | thread | table | string | buffer} - Returns a table containing every live GC object that matches the requested set. The default set is functions and userdata; the filter argument adds to that set (does not replace it).