I have code like this
const resultArray = Object.keys(value ?? {}).map((key) => {
console.log(key); // all data csv id with all data spatial error
return value[key];
});
const valueCSVdata = resultArray.map((item) => { // csv data
const dataCompare = featuresLvFuse.find((element) => { // feature data spatial
let id = element.get("id");
let idCsv = parseInt(item["Id"]); // id csv has same value with specific data spatial
// question is how to merge id csv when id is same
if (
id === idCsv &&
item["Table Name"] == "LV_Fuse" &&
item["Id"] !== "" &&
item["Can Migrate?"] !== "Yes"
) {
if (element !== undefined) {
return [element];
}
}
});
return dataCompare;
});
how to filter data csv where they are same id on the specific Table Name
?