const findLongest = (words) => Math.max(...words.map((el) => el.length));
const findLongest = (words: string[]): number => Math.max(...words.map((el) => el.length));
findLongest(['always', 'look', 'on', 'the', 'bright', 'side', 'of', 'life']); // 6