Question: I have two arrays as input (array1 & array2) for which I want to check if there is a match on id.
If there is a match they should be included in a new array called result.

```
array1 = [
{ x_id:6711230070958, id:279482 },
{ x_id:6770878283950, id:213 },
{ x_id:6753301168302, id:330120 }
];

array2 = [
{ id: 279482, stock: 9 }, 
{ id: 31231, stock: 2 }, 
{ id: 330120, stock: 2 }
];

result [
{ x_id:6711230070958, id: 279482, stock: 9 },
{ x_id:6753301168302, id: 330120, stock: 2 }
]

```

For finding the matches I tried using a filter with includes.
Anybody some thoughts on this?

Answer: 
Unfortunately I cannot answer but may have some more information. I seem to be having a similar issue though on upgrading to Angular v12. I believe in my case it relates to executing the following in my Angular.json. In my case the lines are trying to copy assets for the use of Leaflet within angular and its is no longer able to copy the .png assets.

```
...
            "assets": [

              {
                "glob": "**/*",
                "input": "./node_modules/leaflet/dist/images",
                "output": "/assets/leaflet/"
              }

            ],
...

```

Thanks
I was able to solve this issue by adding `file-loader!` prefix before the path:

```
imgname = require("file-loader!../assets/images/imgname.png");

```

Also, you can try another approach described in this answer <https://stackoverflow.com/a/67932447/8171860>