[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:
parent
91c596f37c
commit
955464fdca
|
@ -12,4 +12,8 @@ export class HelperFunctions {
|
||||||
public static isTiny(url: string) {
|
public static isTiny(url: string) {
|
||||||
return (url.indexOf('tinyurl.com') !== -1);
|
return (url.indexOf('tinyurl.com') !== -1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static copy(element: any): any {
|
||||||
|
return JSON.parse(JSON.stringify(element));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue