Clones an object, returning a new object containing the same properties.
    
    
    
        
        | Name | 
        
        Type | 
        
        Default | 
        
        Description | 
    
    
    
    
        
            
                object | 
            
            
            
                
Object
            
             | 
            
                
                
                 | 
            
            
            
                
                
                
            
                The object to clone. | 
        
    
        
            
                deep | 
            
            
            
                
Boolean
            
             | 
            
                
                
                    false
                
                 | 
            
            
            
                
                        optional
                
                
                
            
                If true, all properties will be deep cloned recursively. | 
        
    
    
Returns:
        
    The cloned object.