export const deepCopy = (toCopy: T) => JSON.parse(JSON.stringify(toCopy)) as T;