回答編集履歴
2
漏れ
    
        answer	
    CHANGED
    
    | @@ -5,5 +5,5 @@ | |
| 5 5 | 
             
            + import * as _ from 'lodash';
         | 
| 6 6 | 
             
            ~中略~
         | 
| 7 7 | 
             
            - let currentData = currentState[index].attribute;
         | 
| 8 | 
            -
            + let currentData = _.get(currentState, `${index}.${attribute}`, ''); // 3番目
         | 
| 8 | 
            +
            + let currentData = _.get(currentState, `${index}.${attribute}`, ''); // 3番目はデフォルト値
         | 
| 9 9 | 
             
            ```
         | 
1
漏れ
    
        answer	
    CHANGED
    
    | @@ -5,5 +5,5 @@ | |
| 5 5 | 
             
            + import * as _ from 'lodash';
         | 
| 6 6 | 
             
            ~中略~
         | 
| 7 7 | 
             
            - let currentData = currentState[index].attribute;
         | 
| 8 | 
            -
            + let currentData = _.get(currentState, `${index}.${attribute}`, );
         | 
| 8 | 
            +
            + let currentData = _.get(currentState, `${index}.${attribute}`, ''); // 3番目
         | 
| 9 9 | 
             
            ```
         |