📜  function allLongestStrings(inputArray) { - 任何代码示例

📅  最后修改于: 2022-03-11 14:57:54.938000             🧑  作者: Mango

代码示例1
function allLongestStrings(inputArray) {
    let maxLength = Math.max(...inputArray.map((a) => a.length))
    
    return inputArray.filter((a) => a.length === maxLength)
}