object.assign deeper level an object of an array code example Example: deep clone object javascript JSON.parse(JSON.stringify(object))