---
title: "Discussion on \"How to properly clone a JavaScript object\" | Hashnode"
description: "Discussion on \"How to properly clone a JavaScript object\". This article covers shallow and deep cloning with benefits, limitations and implementation examples. It also introduces a modern solution - structuredClone."
url: "https://hashnode.com/posts/how-to-properly-clone-a-javascript-object/64062b58baf5a54c1c4890bd"
---

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

Discussion

# [How to properly clone a JavaScript object](https://deadcode.hashnode.dev/how-to-properly-clone-a-javascript-object?utm_source=hashnode&utm_medium=feed)

This article covers shallow and deep cloning with benefits, limitations and implementation examples. It also introduces a modern solution - structuredClone.

Mar 6, 2023 · 3 min read · deadcode.hashnode.dev  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#es6](https://hashnode.com/tag/es6)
-   [#web-development](https://hashnode.com/tag/web-development)
-   [#typescript](https://hashnode.com/tag/typescript)
-   [#programming-tips](https://hashnode.com/tag/programming-tips)

## Written by

[Fernando De La Madrid](https://hashnode.com/@fercodes)

@fercodes

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

Full-stack software engineer who loves building and learning about the web

Bury the past, code the future!

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
