Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

redux toolkit remove from array

// for array
state.roundScore = state.roundScore.filter((score) => score.id !== action.payload);
 
PREVIOUS NEXT
Tagged: #redux #toolkit #remove #array
ADD COMMENT
Topic
Name
2+6 =