📌  相关文章
📜  在数组javascript代码示例中查找最长字符串的长度

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

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

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