title: NGRX - How to use filter to delete an item from an array?
body: <p>I am trying to delete an item from an array but when I execute the code, it removes all the items from the state instead of the ones that dont have the specified ID.</p>
  <pre><code>    case REMOVE_STORE:
        return {
          Stores:[...state.Stores.filter( (item) =&gt; {
            item.storeId != action.payload
          })],
        };
  </code></pre>
  <p>I am able to remove an item by making use of slice, and the position of the element in the array but I would like to make use of the ID instead of the position in the array.</p>