function allLongestStrings(inputArray) { code example
Example: function allLongestStrings(inputArray) {
function allLongestStrings(inputArray) {
let maxLength = Math.max(...inputArray.map((a) => a.length))
return inputArray.filter((a) => a.length === maxLength)
}