remove without condition

To remove an item in an array ( without key ), you can directly write the value which you want to remove.

Example: Remove shrimp in the array

meal = ['crawfish','corn','hotdog',shrimp'] 
dispatch(remove('User>meal','shrimp))

Last updated