function deepClone(obj) { let copy = {}; if (null == obj || "object" != typeof obj) return obj; copy = Object.create(obj.constructor.prototype) for (let key in obj){ copy[key] = clone(obj[key]) } return copy }
Pro tip: use ```triple backticks around text``` to write in code fences