JSFiddle - React, Tailwind, and code Playground

by stvnmntjy

JavaScript

const x = { a: 'a', b: 'b' };
const y = Object.assign({}, x, { c: 'c', d: 'd' });
delete y.a;
console.log('x', x);
console.log('y', y);