You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
How about an optional parameter for the delta, with default of 1
state = dotProp.increment(state, `players.${playerIndex}.commander.deadCount`); // default is 1
state = dotProp.increment(state, `players.${playerIndex}.commander.deadCount`, 10);
This is a feature request. There is
toggle()
for a boolean value and I would like to have similar stuff for numbers.Example: the following code
could be replaced with
I used
merge
instead ofset
because the propertydeadCount
might be not initialized. In this case, we can treat it as0
.The text was updated successfully, but these errors were encountered: