Filter() method erasing whole array

Hello everyone, I am having a small issue with my filter method and setting state.
my method looks like this

Removefromcart = ({ title, desc, price, image, id }) => {
    this.setState(state => ({
      cart: this.state.cart.filter(item => !== id),

      //total: - price

At the moment this method erases everything in the cart array.
my items look like this{title, imageUrl, desc, price, id }) => (
              <Card key={id} id={id}  style={{ width: '18rem'}}>
  <Card.Img variant="top" src={imageUrl} width='10rem' height='180rem' />
      {desc} <br />
    <Button variant="primary" onClick={e => this.handleAddToCart(e, { title, image : imageUrl, desc, price })}>Add to cart</Button>

I’m sure there’s just a simple mistake I am making, but I can’t figure it out.
Thank you in advance for your help and expertise.

That means the above could be true for every item. Is id a string or number?

A number.
I thought it would be comparing the selected item’s id with the array.

Just to make sure:

Removefromcart = ({ title, desc, price, image, id }) => {
    console.log('id has typeof' + typeof id);
    this.setState(state => ({
      cart: this.state.cart.filter(item => {
        console.log(' has typeof' + typeof;
        return !== id

      //total: - price

Both are returning undefined. It looks like that’s the issue.
Also, i have my full code on a code sandbox here if you need to see it: