回答編集履歴
1
修正
answer
CHANGED
@@ -2,5 +2,5 @@
|
|
2
2
|
|
3
3
|
```JavaScript
|
4
4
|
const array = ["a", "b", "c", "d", "e", "e", "b", "e", "c", "a", "d"];
|
5
|
-
console.log(array.join("").
|
5
|
+
console.log([...array.sort().join("").matchAll(/(.)\1+/g)].map(a => a[0]).sort((a, b) => b.length - a.length)[0][0]);
|
6
6
|
```
|