0
Q:

Convert longest string in array

const findLongest = words => Math.max(...(words.map(el => el.length)));

// Example
findLongest(['always','look','on','the','bright','side','of','life']);  // 6
6

New to Communities?

Join the community