JSFiddle - React, Tailwind, and code Playground

by LyndseyB

JavaScript

const obj = {
	name: "simon",
  something: {
  	else: true
  }
};

const another = { ...obj };

another.something.else = false;

console.log(obj)