JSFiddle - React, Tailwind, and code Playground
JavaScript
var x = {'a': 't1', 'b': 't2', 'c': 't3'};
var copy = Object.assign({}, x);
delete (copy.c);
console.log(x);
console.log(copy);
var x = {'a': 't1', 'b': 't2', 'c': 't3'};
var copy = Object.assign({}, x);
delete (copy.c);
console.log(x);
console.log(copy);