In React, I've got two state objects that hold multidimensional data like this:

```
this.state = {
    itemList: [
        {Id: 1, Name: "Bob", Age: 50},
        {Id: 2, Name: "Fred", Age: 26},
        {Id: 3, Name: "Joe", Age: 34},
    ],
    newItemList: [],
}

```

I want to call a function to add an item from the first list to the second list, using the item's Id. For example:

```
addItem(1);
addItem(2);
//NEW VALUES:
itemList: [
    {Id: 1, Name: "Bob", Age: 50},
    {Id: 2, Name: "Fred", Age: 26},
    {Id: 3, Name: "Joe", Age: 34},
],
newItemList: [
    {Id: 1, Name: "Bob", Age: 50},
    {Id: 2, Name: "Fred", Age: 26},
],

```

I then want to call a second function to search the second list, newItemList, to see if it contains an object by Id. If it does contain that Id, I want to remove the full object. Example:

```
checkItem(2);
function checkItem(item) {
    if(isInNewList(item)) {
        //Function checks for item 2 and removes item 2 from list
    }
}
//NEW VALUE:
newItemList: [
    {Id: 1, Name: "Bob", Age: 50},
],

```

I've done quite a bit of reading, but can't seem to grasp the concepts to make both of these happen easily. Both itemList and newItemList are stored in the current component's state. Thanks for any help!!