---
title: "Discussion on \"Deep vs Shallow Clone - How (and how not) to deep clone a JavaScript object\" | Hashnode"
description: "Discussion on \"Deep vs Shallow Clone - How (and how not) to deep clone a JavaScript object\". In this article, we discuss the difference between a shallow and a deep clone, and the right way (and wrong ways) to deep clone a JavaScript object."
url: "https://hashnode.com/posts/deep-vs-shallow-clone-how-and-how-not-to-deep-clone-a-javascript-object/61d4b0ea220e987977669aa7"
---

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

Discussion

# [Deep vs Shallow Clone - How (and how not) to deep clone a JavaScript object](https://praffuljavare.hashnode.dev/deep-vs-shallow-clone-how-and-how-not-to-deep-clone-a-javascript-object?utm_source=hashnode&utm_medium=feed)

In this article, we discuss the difference between a shallow and a deep clone, and the right way (and wrong ways) to deep clone a JavaScript object.

Jan 3, 2022 · 4 min read · praffuljavare.hashnode.dev  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#js](https://hashnode.com/tag/js)
-   [#object](https://hashnode.com/tag/object)
-   [#vanilla-js-1](https://hashnode.com/tag/vanilla-js-1)

## Written by

[Prafful Javare](https://hashnode.com/@profgrammer)

@profgrammer · Mumbai

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

Software Engineer

I am a computer engineering graduate who passed out in 2020, and have a year of experience majorly in React and NodeJS. In college I loved to participate in coding competitions, hackathons and tech talks, and now that everything is remote, I am loving the transition of such events from in-person to online.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
