This is the codeAbility Sharing Platform! Learn more about the codeAbility Sharing Platform.

Skip to content
Snippets Groups Projects
Commit 5146e198 authored by Daniel Rainer's avatar Daniel Rainer
Browse files

Remove unused arrayToString function

parent 9f82f95b
Branches
Tags
1 merge request!36Refactor exercise metadata display
......@@ -37,23 +37,6 @@ export class ExerciseMetadataComponent implements OnInit, OnDestroy {
return "<a class='text-dark' href='mailto:" + person.email + "'>" + person.name + ', ' + person.affiliation + '</a>';
}
public arrayToString(array: string[]): string {
let result = '';
let i = 1;
array.forEach(element => {
if (array.length > 1 && array.length !== i) {
result += element + ', ';
} else {
result += element;
}
if (i % 5 === 0) {
result += '<br>';
}
i++;
});
return result;
}
ngOnDestroy(): void {
if (this.authSubscription) {
this.authSubscription.unsubscribe();
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment