Copy and Merge
Copy
let data = { product: "SKU001", month: "May", sales: 300 }
const dataCopy = wire.copy(data);Merge
let source = { product: "SKU001", month: "May", sales: 300 }
let target = { product: "SKU431", sales: 500 }
wire.merge(target, source);
// target = { product: "SKU001", month: "May", sales: 300 }Last updated
Was this helpful?