how to deep copy strings in js code example Example: deep clone object javascript JSON.parse(JSON.stringify(object))