Passer au contenu principal

Arguments

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

Retours

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

Exemple

Create a cloned closure from a function.