diff --git a/utils/HelperFunctions.class.ts b/utils/HelperFunctions.class.ts index 9ebcb542..6d663475 100644 --- a/utils/HelperFunctions.class.ts +++ b/utils/HelperFunctions.class.ts @@ -12,4 +12,8 @@ export class HelperFunctions { public static isTiny(url: string) { return (url.indexOf('tinyurl.com') !== -1); } + + public static copy(element: any): any { + return JSON.parse(JSON.stringify(element)); + } }