回答編集履歴

2

漏れ

2019/11/06 02:05

投稿

guissy-k
guissy-k

スコア245

test CHANGED
@@ -12,6 +12,6 @@
12
12
 
13
13
  - let currentData = currentState[index].attribute;
14
14
 
15
- + let currentData = _.get(currentState, `${index}.${attribute}`, ''); // 3番目
15
+ + let currentData = _.get(currentState, `${index}.${attribute}`, ''); // 3番目はデフォルト値
16
16
 
17
17
  ```

1

漏れ

2019/11/06 02:05

投稿

guissy-k
guissy-k

スコア245

test CHANGED
@@ -12,6 +12,6 @@
12
12
 
13
13
  - let currentData = currentState[index].attribute;
14
14
 
15
- + let currentData = _.get(currentState, `${index}.${attribute}`, );
15
+ + let currentData = _.get(currentState, `${index}.${attribute}`, ''); // 3番目
16
16
 
17
17
  ```