I'm trying to splice all matching items of `parcel` in an array inside an object.

Example of array of objects called `documents`:

```
[
{name: "first", content: ["1", "2", "1", "3"]},
{name: "second", content: ["2", "1", "1", "1"]},
{name: "third", content: ["4", "1", "3", "2"]},
]

```

`parcel = 1` and I'm trying to splice all instances of `1`.

Here's what I have at the moment:

```
console.log(parcel);
const parcel = 1;
console.log("doc start", documents);
for (i of documents) {
    // get index by count
    let count = -1;
    for (j of i.content) {
      count = count + 1;
      console.log(j);
      if (j == parcel) {
        i.content.splice(count, 1);
      }
    }
  }
console.log("doc end", documents);

```

Here's what the console logs with different array example:

```
parcel 1
doc start [
  {
    title: '1',
    content: [
      '1', '2', '2',
      '3', '1', '1',
      '2', '3'
    ]
  }
]
1
2
3
1
2
3
doc end [ { title: '1', content: [ '2', '2', '3', '1', '2', '3' ] } ]

```

You can see that `j` doesn't seem to be looping through the whole of `i.content`, which means that the `if` statement is not running to splice all the correct items.

The end result of the console log should be:

```
doc start [{title: '1', content: [ '2', '2', '3', '2', '3' ]}]

```

I'm not sure why this is happening...