In my Vue project, I am working with two arrays. The first array, TempId, contains the following data:
[{"id":47},{"id":45},{"id":48}]
The second array is called multiprices and it looks like this:
multiprices: [
{
id: 45,
name: "",
price: "2600000",
},
{
id: 46,
name: "",
price: "2600000",
},
{
id: 47,
name: "",
price: "2600000",
},
{
id: 48,
name: "",
price: "2600000",
}
],
My goal is to identify and remove certain items from the second array and transfer them to a new dataset. In this example, I specifically need to move the item with id 46.