回答編集履歴

1

ソースの修正

2021/11/24 13:49

投稿

k_a
k_a

スコア983

test CHANGED
@@ -8,9 +8,9 @@
8
8
 
9
9
  const getOrderNumber = (masters, shopNames, shopName) => {
10
10
 
11
- const aIndex = masters.findIndex(shop => shop.name === shopName)
11
+ const index = masters.findIndex(shop => shop.name === shopName)
12
12
 
13
- return aIndex > -1 ? masters[aIndex].order_number : shopNames.length
13
+ return index > -1 ? masters[index].order_number : shopNames.length
14
14
 
15
15
  }
16
16