Fichtelgard

Add a String to an Array

export function addStringToArray(data: string, array: string[]): string[] {
if (!array.includes(data)) {
array.push(data);
}
return array;
}