From 480ccd2d4588f0be6b0eb51fda902e4b5e754df8 Mon Sep 17 00:00:00 2001 From: Arseny Kapoulkine Date: Mon, 14 Feb 2022 10:26:00 -0800 Subject: [PATCH] Update function-table-clone.md --- rfcs/function-table-clone.md | 1 + 1 file changed, 1 insertion(+) diff --git a/rfcs/function-table-clone.md b/rfcs/function-table-clone.md index 114f38f6..978dbdd4 100644 --- a/rfcs/function-table-clone.md +++ b/rfcs/function-table-clone.md @@ -28,6 +28,7 @@ The table can be modified after cloning; as such, a primitive like `Object.assig `table.clone(t)` is functionally equivalent to the following code, but it's more ergonomic (on the account of being built-in) and significantly faster: ```lua +assert(type(t) == "table") local nt = {} for k,v in pairs(t) do nt[k] = v