One of the most common pieces of JavaScript you'll find in modern codebases looks like this:

const nextState = {

...state,

count: state.count + 1

}