Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
adaptedData = data.features.map(feature => {
return Object.assign(feature, {
category: "PROTEOMICS",
type: feature.unique ? "unique" : "non_unique",
tooltipContent: formatTooltip(feature)
});
});
adaptedData = renameProperties(adaptedData);