<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>m-hiyama</author_name>
  <author_url>https://blog.hatena.ne.jp/m-hiyama/</author_url>
  <blog_title>檜山正幸のキマイラ飼育記 (はてなBlog)</blog_title>
  <blog_url>https://m-hiyama.hatenablog.com/</blog_url>
  <categories>
    <anon>雑記／備忘</anon>
  </categories>
  <description>プログラミングのミニ知識シリーズ（って、そんなシリーズねーよ）。「変数aの内容を変数bにコピー」ってのを3種類書いてみました。最初のは一番シャロー、どんどんディープになります。下に絵も描きましたよ。 var a = [{x:0, y:0}, {x:0, y:0}]; // aをbにコピー その1 var b = a; // aを変更 a[0] = {x:1, y:1}; a[1].x = 1; // aの変更でbはどうなったかな？ var a = [{x:0, y:0}, {x:0, y:0}]; // aをbにコピー その2 var b = new Array(2); b[0] = a[0]…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fm-hiyama.hatenablog.com%2Fentry%2F20060324%2F1143161404&quot; title=&quot;シャローコピーとディープコピー - 檜山正幸のキマイラ飼育記 (はてなBlog)&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>http://www.chimaira.org/img/sd-copies.gif</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2006-03-24 09:50:04</published>
  <title>シャローコピーとディープコピー</title>
  <type>rich</type>
  <url>https://m-hiyama.hatenablog.com/entry/20060324/1143161404</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
