回答編集履歴
1
あ
test
CHANGED
@@ -72,11 +72,7 @@
|
|
72
72
|
|
73
73
|
const f = buildJudger(c);
|
74
74
|
|
75
|
-
console.log(c);
|
76
|
-
|
77
|
-
console.log(f);
|
78
|
-
|
79
|
-
const sum = Object.entries(obj).reduce((a,c)=>
|
75
|
+
const sum = Object.entries(obj).reduce((a,c)=> f(Number(c[0])) ? a+c[1] : a ,0);
|
80
76
|
|
81
77
|
return {...a,[c]:sum};
|
82
78
|
|