Answers for "object.assign() in NgRx"

1

object.assign() in NgRx

function todoApp(state = initialState, action) {
  switch (action.type) {
    case SET_VISIBILITY_FILTER:
      return Object.assign({}, state, {
        visibilityFilter: action.filter
      })
    default:
      return state
  }
}
Posted by: Guest on May-30-2020

Code answers related to "object.assign() in NgRx"

Code answers related to "TypeScript"

Browse Popular Code Answers by Language