質問編集履歴

1

自分のコードif (this.id === i + 1を if (this.id === i.id)に変更

2021/07/13 04:50

投稿

happyylemon
happyylemon

スコア13

test CHANGED
File without changes
test CHANGED
@@ -190,7 +190,7 @@
190
190
 
191
191
  for (i in this.users) {
192
192
 
193
- if (this.id === i + 1) {
193
+ if (this.id === i.id) {
194
194
 
195
195
  this.result = i.name
196
196