From 9828a48c06bed924e5cce650896299dca508f064 Mon Sep 17 00:00:00 2001 From: Adam McQuilkin <46639306+ajmcquilkin@users.noreply.github.com> Date: Thu, 11 Aug 2022 21:10:38 -0700 Subject: [PATCH] Initial commit --- src/helpers.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/helpers.ts b/src/helpers.ts index 8a14629..1196151 100644 --- a/src/helpers.ts +++ b/src/helpers.ts @@ -33,7 +33,7 @@ export function _objectKeys(obj) { * @param {any} obj value to clone * @return {any} cloned obj */ -export function _deepClone(obj) { +export function _deepClone(obj: T): T | null { switch (typeof obj) { case "object": return JSON.parse(JSON.stringify(obj)); //Faster than ES5 clone - http://jsperf.com/deep-cloning-of-objects/5