setRemoval(val) {
let newJson = [];
for (let item1 of val) {
let flag = true;
for (let item2 of newJson) {
if (item1.id === item2.id) {
flag = false;
}
}
if (flag) {
newJson.push(item1);
}
}
return newJson;
},
setRemoval(val) {
let newJson = [];
for (let item1 of val) {
let flag = true;
for (let item2 of newJson) {
if (item1.id === item2.id) {
flag = false;
}
}
if (flag) {
newJson.push(item1);
}
}
return newJson;
},