I have two arrays - `array 1` and `array 2`. I want to update `newName` property of `array1` items if that item exists in `array2`. I have below code to do this task

```
array1.forEach((array1Item) => {
   const foundItem = array2.find(array2Item => array2Item.id === array1Item.id);                   
   if (foundItem) {                      
    array1Item.newName = foundItem.name;                  
   }           
})

```

I want to know if there is any better (or modern) way to do write this piece of code using es6 functions.