回答編集履歴
1
update
test
CHANGED
@@ -36,7 +36,7 @@
|
|
36
36
|
|
37
37
|
}
|
38
38
|
|
39
|
-
function
|
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
|
59
|
+
return isMatchToAllConditions(menu, conditions)
|
60
60
|
|
61
61
|
})
|
62
62
|
|