diff src/lib/Utils.luan @ 40:7ea33179592a

email notification
author Franklin Schmidt <fschmidt@gmail.com>
date Thu, 27 Feb 2025 16:44:20 -0700
parents 7230c821c368
children
line wrap: on
line diff
--- a/src/lib/Utils.luan	Sun Nov 17 12:06:08 2024 -0700
+++ b/src/lib/Utils.luan	Thu Feb 27 16:44:20 2025 -0700
@@ -68,4 +68,12 @@
 	return false
 end
 
+function Utils.shallow_copy(t)
+	local rtn = {}
+	for key, val in pairs(t) do
+		rtn[key] = val
+	end
+	return rtn
+end
+
 return Utils