Skip to main content

参数

function
必填
Function to clone. Passing a non-function raises a type error.

返回值

function
New function produced by the newcclosure, C closure, or Luau closure clone path.

示例

Create a cloned closure from a function.