Open this example in the interactive library
Source code
const trim = { width: 210, height: 297 },
bleed = 3;
console.log(
Object.fromEntries(Object.entries(trim).map(([k, v]) => [k, v + 2 * bleed])),
);
Sample output
{ width: 216, height: 303 }