---
title: "Discussion on \"Deep copy function in JS\" | Hashnode"
description: "Discussion on \"Deep copy function in JS\". The deep copy is implemented in the same way as the shallow copy: you loop\nthrough the properties and copy them one by one. But, when you encounter a\nproperty that points to an object, you call the deep copy function again:\nfunction deepCopy(p, c) {\n..."
url: "https://hashnode.com/posts/deep-copy-function-in-js-3e82259ffffd/6125c5e5b115357df05f511f"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Deep copy function in JS](https://blog.adarshkonchady.com/deep-copy-function-in-js-3e82259ffffd?utm_source=hashnode&utm_medium=feed)

The deep copy is implemented in the same way as the shallow copy: you loop through the properties and copy them one by one. But, when you encounter a property that points to an object, you call the deep copy function again: function deepCopy(p, c) { ...

Aug 15, 2014 · 1 min read · blog.adarshkonchady.com  
Read the article

## Written by

[Adarsh Konchady](https://hashnode.com/@adarshkonchady)

@adarshkonchady · Minnesota, US

  
[View profile](https://hashnode.com/@adarshkonchady)

Interested in all things Web !

As a Senior Principal Engineer at CVSHealth, I specialize in building and optimizing cvs.com to deliver a superior guest experience. Using the latest web technologies, my team and I work diligently to create a user-friendly and intuitive platform that exceeds expectations.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
