回答編集履歴

1

2020/11/29 11:17

投稿

papinianus
papinianus

スコア12705

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)=> { console.log(c[0]);console.log(f(Number(c[0])));return f(Number(c[0])) ? a+c[1] : a} ,0);
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