回答編集履歴

1

update

2021/03/25 08:14

投稿

takezoux2
takezoux2

スコア6

test CHANGED
@@ -36,7 +36,7 @@
36
36
 
37
37
  }
38
38
 
39
- function matchToObject(data, conditions: Condition[]) {
39
+ function isMatchToAllConditions(data, conditions: Condition[]) {
40
40
 
41
41
  return conditions.every(c => data[c.key] == c.value)
42
42
 
@@ -56,7 +56,7 @@
56
56
 
57
57
  const searched = menues.filter(menu => {
58
58
 
59
- return matchToObject(menu, conditions)
59
+ return isMatchToAllConditions(menu, conditions)
60
60
 
61
61
  })
62
62