📌  相关文章
📜  转换数组中最长的字符串 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:01:22.509000             🧑  作者: Mango

代码示例1
const findLongest = words => Math.max(...(words.map(el => el.length)));

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