> ## 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.

# islclosure

> Returns whether the provided function is a Lua closure. The argument must be a function; passing a non-function raises a type error. isluaclosure is an alias.

<div className="real-function-page">
  ```lua theme={null}
  islclosure(func: function): boolean
  ```

  ## Alias

  * `isluaclosure`

  ## Argumen

  <ParamField path={"func"} type={"function"} required>
    Function to test.
  </ParamField>

  ## Return

  <ResponseField name={"isLClosure"} type={"boolean"}>
    true when the function is a Lua closure; otherwise false.
  </ResponseField>

  ## Contoh

  Check whether a function is an L closure.

  ```lua theme={null}
  local function target()
  end

  print(islclosure(target))
  ```
</div>
