Ignore Same Id from CSV on the specific column

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?

id has same value is on 2 Id,
with data error description

id = 11
data column error desc
1 row = RATING_FUSE_ERROR
1 row = PHASING_FUSE_ERROR

id = 168
data column error desc
1 row = RATING_FUSE_ERROR
1 row = PHASING_FUSE_ERROR

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.