export function searchInArray<T>(items: T[], descriptionFn: (t: T) => string, searchText: string): T[] { const words = searchText.toLowerCase().trim().split(" "); return items.filter(x => words.every(z => descriptionFn(x).toLowerCase().includes(z))); }
688200cookie-checkTypescript search in array