> ## Documentation Index
> Fetch the complete documentation index at: https://docs.projectreal.gg/llms.txt
> Use this file to discover all available pages before exploring further.

# filtergc

> Verilen filters ile eşleşen live garbage-collected tables veya functions arar. filterType "table" veya "function" olmalıdır. options bir table olmalıdır.

<div className="real-function-page">
  ```lua theme={null}
  filtergc(filterType: string, options: table, returnOne?: boolean): table | function | nil
  ```

  ## Argümanlar

  <ParamField path={"filterType"} type={"string"} required>
    Aranacak GC object type. Deger lowercase yapilir ve "table" veya "function" olmalidir.
  </ParamField>

  <ParamField path={"options"} type={"table"} required>
    Filter table. function searches Name, Hash, StartLine, IgnoreExecutor, IgnoreSyn, Environment, Constants ve Upvalues okur. table searches Metatable, Keys, Values ve KeyValuePairs okur.
  </ParamField>

  <ParamField path={"returnOne"} type={"boolean"}>
    Optional optional boolean handling flag. true iken array table yerine ilk matching object veya nil dondurur.
  </ParamField>

  ## Dönüşler

  <ResponseField name={"result"} type={"table | function | nil"}>
    returnOne false veya omitted iken array table of matches. returnOne true iken ilk matching table/function object veya nil.
  </ResponseField>

  ## Örnek

  Find GC tables by key filters without relying on result order.

  ```lua theme={null}
  local marker = {
      RealDocsMarker = true,
  }

  local matches = filtergc("table", {
      Keys = { "RealDocsMarker" },
  })

  for _, value in ipairs(matches) do
      if value == marker then
          print("found marker")
          break
      end
  end

  local first = filtergc("table", {
      Keys = { "RealDocsMarker" },
  }, true)

  print(first ~= nil)
  ```
</div>
