[Library]: Add copy function on HelperFunctions

git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@57573 d315682c-612b-4755-9ff5-7f18f6832af3
This commit is contained in:
k.triantafyllou 2019-11-11 13:27:18 +00:00
parent 91c596f37c
commit 955464fdca
1 changed files with 4 additions and 0 deletions

View File

@ -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));
}
}