find length of longest string in array javascript

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

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

Also in JavaScript: