var arr = ["aaaa", "aa", "aa", "aaaaa", "a", "aaaaaaaa"]; console.log( arr.reduce((a, b) => a.length <= b.length ? a : b) )