---
title: "Discussion on \"Deep Copying Objects In JavaScript\" | Hashnode"
description: "Discussion on \"Deep Copying Objects In JavaScript\". When you try to copy objects in JavaScript with Object.assign or the spread operator, you might think you've avoided copying the items by reference.\nAnd yes, this is true, but for only top-level properties of the object, if you try to update nested p..."
url: "https://hashnode.com/posts/deep-copying-objects-in-javascript/606a39b4b17dc439b747beab"
---

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

Discussion

# [Deep Copying Objects In JavaScript](https://faarda.hashnode.dev/deep-copying-objects-in-javascript?utm_source=hashnode&utm_medium=feed)

When you try to copy objects in JavaScript with Object.assign or the spread operator, you might think you've avoided copying the items by reference. And yes, this is true, but for only top-level properties of the object, if you try to update nested p...

Apr 4, 2021 · 2 min read · faarda.hashnode.dev  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#web-development](https://hashnode.com/tag/web-development)
-   [#frontend-development](https://hashnode.com/tag/frontend-development)

## Written by

[Silas Adedoyin](https://hashnode.com/@Faarda)

@Faarda · Lagos, Nigeria

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

Writing about random stuff in frontend engineering

Web Experience Engineer at https://mono.co

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
