ngxs update array code example
Example: update object in array in ngxrx store in angular
arr.map((value, index) => index === action.index ? {...value, name: action.value} : value)
arr.map((value, index) => index === action.index ? {...value, name: action.value} : value)