質問編集履歴
2
エラーの行について追記
title
CHANGED
File without changes
|
body
CHANGED
@@ -50,6 +50,7 @@
|
|
50
50
|
```
|
51
51
|
const removeZero = cutFilter.filter((item: foodStuffType) => item[targetElm] !== 0);
|
52
52
|
```
|
53
|
+
item[targetElm]に対してエラーが発生しており上記のエラーが表記されます。
|
53
54
|
|
54
55
|
### 試したこと
|
55
56
|
|
1
エラーが生じている行を載せました
title
CHANGED
File without changes
|
body
CHANGED
@@ -46,6 +46,10 @@
|
|
46
46
|
```
|
47
47
|
型エラーを起こさずにVitaminAやVitaminCの値を取得さえできればここの処理はクリアできるのですが上手くいきません。どなたかお助けを。
|
48
48
|
|
49
|
+
エラーが生じている行
|
50
|
+
```
|
51
|
+
const removeZero = cutFilter.filter((item: foodStuffType) => item[targetElm] !== 0);
|
52
|
+
```
|
49
53
|
|
50
54
|
### 試したこと
|
51
55
|
|