Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
({ id, cut1, cut2, start, end, size, ...rest }) => {
return {
...rest,
id,
start,
end,
length: size,
leftCutter: cut1.restrictionEnzyme.name,
rightCutter: cut2.restrictionEnzyme.name,
leftOverhang: getCutsiteType(cut1.restrictionEnzyme),
rightOverhang: getCutsiteType(cut2.restrictionEnzyme)
};
}
)}
({ id, cut1, cut2, start, end, size, ...rest }) => {
return {
...rest,
id,
start,
end,
length: size,
leftCutter: cut1.restrictionEnzyme.name,
rightCutter: cut2.restrictionEnzyme.name,
leftOverhang: getCutsiteType(cut1.restrictionEnzyme),
rightOverhang: getCutsiteType(cut2.restrictionEnzyme)
};
}
)}