<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>StructuredClone on Nalar</title>
    <link>https://nalar.dev/tags/structuredclone/</link>
    <description>Recent content in StructuredClone on Nalar</description>
    <generator>Hugo</generator>
    <language>en-us</language>
    <lastBuildDate>Wed, 02 Sep 2026 00:00:00 +0700</lastBuildDate>
    <atom:link href="https://nalar.dev/tags/structuredclone/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Deep Cloning in JavaScript with structuredClone</title>
      <link>https://nalar.dev/deep-cloning-in-javascript-with-structuredclone/</link>
      <pubDate>Wed, 02 Sep 2026 00:00:00 +0700</pubDate>
      <guid>https://nalar.dev/deep-cloning-in-javascript-with-structuredclone/</guid>
      <description>&lt;p&gt;Copying JavaScript objects looks simple until values contain nested arrays, dates, maps, sets, typed arrays, or circular references. A shallow spread copies only the first level, while the old &lt;code&gt;JSON.stringify&lt;/code&gt; and &lt;code&gt;JSON.parse&lt;/code&gt; pattern changes or rejects several legitimate JavaScript values.&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;structuredClone&lt;/code&gt; provides a standard deep-cloning operation based on the structured clone algorithm used by browser messaging APIs.&lt;/p&gt;&#xA;&lt;h2 id=&#34;shallow-copies-keep-nested-references&#34;&gt;Shallow copies keep nested references&lt;/h2&gt;&#xA;&lt;p&gt;A spread expression creates a new outer object:&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
