回答編集履歴

1

\.map\(String\) // クラスパターンで names を String 型に変換

2016/10/05 08:42

投稿

think49
think49

スコア18162

test CHANGED
@@ -14,7 +14,7 @@
14
14
 
15
15
  constructor(/* ...name */) {
16
16
 
17
- this.names = Array.from(arguments);
17
+ this.names = Array.from(arguments).map(String);
18
18
 
19
19
  }
20
20