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