//remove specific string from array removeFromArray(array: any[], element: string): any[] { return array.filter(item => item !== element); }