Skip to content
Scripts & runtimeOverview

filtergc

Represents filtered inspection of runtime objects.

Details#

Filters discoverable runtime objects using a predicate function, or the strings table/function with an options table and optional returnOne flag. Predicate errors are skipped; predicate mode returns a collection. The example only matches a table created locally.

Examples#

Example

Luau
local marker = { docsMarker = true }
local matches = filtergc(function(value) return value == marker end)
print(#matches, marker.docsMarker)