1<!DOCTYPE html><html lang="en"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="ie=edge"/><meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"/><style data-href="/styles.d1548a311d69100e24ba.css">html{font-size:100}body{margin:0 0 0 calc(100vw - 100%);color:#222;line-height:1.625;font-size:1rem;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}body,h1,h2,h3,h4,h5,h6{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif}h1,h2,h3,h4,h5,h6{font-weight:600}h1{font-size:2.5rem;line-height:3.25rem;margin-top:6.5rem;margin-bottom:1.625rem}h2{font-size:1.6875rem;line-height:2.4375rem}h2,h3{margin-top:3.25rem;margin-bottom:.8125rem}h3{font-size:1.375rem;line-height:1.625rem}h4{font-size:1.2rem;margin-top:2.4375rem}h4,h5{line-height:1.625rem;margin-bottom:.8125rem}h5,h6{font-size:1rem;margin-top:4.0625rem}h6{line-height:1.625rem;margin-bottom:.8125rem}img{max-width:100%;margin:inherit auto}hr,img{border:0;display:block}hr{color:#222;height:26px;margin:3.25rem auto;background-size:100% 26px;background-image:linear-gradient(180deg,transparent 1px,transparent 11px,#222 0,#222 15px,transparent 0,transparent 26px);width:6.25rem}a{color:#5d93ff;text-decoration:none}a:active,a:focus,a:hover{color:#f7a046}b,strong{font-weight:600}ul{list-style:square;margin-bottom:1.625rem}ul li{padding:0 .3125rem;margin-bottom:.625rem}p{line-height:1.625rem;margin-bottom:1.625rem}blockquote{padding:0;font-style:italic;text-align:center}figure{display:block;width:100%;height:auto}figcaption{line-height:1.21875rem;margin-top:.40625rem;color:#222;font-size:.875rem;font-style:italic;margin-bottom:0;text-align:center}.anchor{margin-left:-1.875rem!important;padding-right:.875rem!important}@media screen and (min-width:685px){figure.float-left,figure.float-right{max-width:19.375rem;padding:0 1.625rem}.float-right{float:right}.float-left{float:left}}code[class*=language-],pre[class*=language-]{color:#657b83;font-family:Consolas,Monaco,Andale Mono,Ubuntu Mono,monospace;font-size:1em;text-align:left;white-space:pre;word-spacing:normal;word-break:normal;word-wrap:normal;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-hyphens:none;-ms-hyphens:none;hyphens:none}code[class*=language-]::selection,code[class*=language-] ::selection,pre[class*=language-]::selection,pre[class*=language-] ::selection{background:#073642}pre[class*=language-]{padding:1em;margin:.5em 0;overflow:auto;border-radius:.3em}:not(pre)>code[class*=language-],pre[class*=language-]{background-color:#fdf6e3}:not(pre)>code[class*=language-]{padding:.1em;border-radius:.3em}.token.cdata,.token.comment,.token.doctype,.token.prolog{color:#93a1a1}.token.punctuation{color:#586e75}.namespace{opacity:.7}.token.boolean,.token.constant,.token.deleted,.token.number,.token.property,.token.symbol,.token.tag{color:#268bd2}.token.attr-name,.token.builtin,.token.char,.token.inserted,.token.selector,.token.string,.token.url{color:#2aa198}.token.entity{color:#657b83;background:#eee8d5}.token.atrule,.token.attr-value,.token.keyword{color:#859900}.token.class-name,.token.function{color:#b58900}.token.important,.token.regex,.token.variable{color:#cb4b16}.token.bold,.token.important{font-weight:700}.token.italic{font-style:italic}.token.entity{cursor:help}.Author-module--author__photo--36xCH{display:inline-block;margin-bottom:0;border-radius:50%;background-clip:padding-box}.Author-module--author__title--2CaTb{font-size:1.125rem;font-weight:600;line-height:1.82813rem;margin:.8125rem 0}.Author-module--author__title-link--Yrism,.Author-module--author__title-link--Yrism:focus,.Author-module--author__title-link--Yrism:hover{color:#222}.Author-module--author__subtitle--cAaEB{color:#888;line-height:1.625rem;margin-bottom:1.625rem}.Icon-module--icon--Gpyvw{display:inline-block;width:1em;height:1em;stroke-width:0;stroke:currentColor;fill:currentColor;font-style:normal;font-weight:400;speak:none;margin-right:.2em;text-align:center;font-variant:normal;text-transform:none;line-height:1em;margin-left:.2em;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.Contacts-module--contacts--1rGd1{margin-bottom:1.625rem}.Contacts-module--contacts__list--3OgdW{display:-webkit-box;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;flex-flow:row wrap;-webkit-box-flex:0;flex-grow:0;flex-shrink:0;list-style:none;padding:0;margin:.625rem -.1875rem;width:8.75rem}.Contacts-module--contacts__list-item--16p9q{padding:0;margin:.25rem;display:-webkit-box;display:flex;align-content:center;-webkit-box-align:center;align-items:center;-webkit-box-pack:center;justify-content:center;height:35px;width:2.1875rem;line-height:2.1875rem;border-radius:50%;text-align:center;border:1px solid #ebebeb}.Contacts-module--contacts__list-item-link--2MIDn{border:0;display:-webkit-box;display:flex;color:#222}.Contacts-module--contacts__list-item-link--2MIDn:focus,.Contacts-module--contacts__list-item-link--2MIDn:hover{color:#5d93ff}.Copyright-module--copyright--1ariN{color:#b6b6b6;font-size:.875rem}.Menu-module--menu--Efbin{margin-bottom:1.625rem}.Menu-module--menu__list--31Zeo{list-style:none;padding:0;margin:0}.Menu-module--menu__list-item--1lJ6B{padding:0;margin:.625rem 0}.Menu-module--menu__list-item-link--10Ush{font-size:1rem;color:#222;font-weight:400;border:0}.Menu-module--menu__list-item-link--10Ush:focus,.Menu-module--menu__list-item-link--10Ush:hover{color:#5d93ff;border-bottom:1px solid #5d93ff}.Menu-module--menu__list-item-link--active--2CbUO{color:#222;border-bottom:1px solid #222}.Sidebar-module--sidebar--X4z2p{width:100%}.Sidebar-module--sidebar__inner--Jdc5s{position:relative;padding:1.5625rem 1.25rem 0}@media screen and (min-width:685px){.Sidebar-module--sidebar--X4z2p{width:calc(41.625% - 1.09375rem)}.Sidebar-module--sidebar--X4z2p:nth-child(1n){float:left;margin-right:1.875rem;clear:none}.Sidebar-module--sidebar--X4z2p:last-child{margin-right:0}.Sidebar-module--sidebar--X4z2p:nth-child(12n){margin-right:0;float:right}.Sidebar-module--sidebar--X4z2p:nth-child(12n+1){clear:both}.Sidebar-module--sidebar__inner--Jdc5s{padding:1.875rem 1.25rem 0}.Sidebar-module--sidebar__inner--Jdc5s:after{background:#e6e6e6;background:-webkit-gradient(linear,left top,left bottom,from(#e6e6e6),color-stop(48%,#e6e6e6),to(#fff));background:linear-gradient(180deg,#e6e6e6 0,#e6e6e6 48%,#fff);position:absolute;content:"";width:.0625rem;height:540px;top:30px;right:-10px;bottom:0}}@media screen and (min-width:960px){.Sidebar-module--sidebar--X4z2p{width:calc(33.3% - 1.25rem)}.Sidebar-module--sidebar--X4z2p:nth-child(1n){float:left;margin-right:1.875rem;clear:none}.Sidebar-module--sidebar--X4z2p:last-child{margin-right:0}.Sidebar-module--sidebar--X4z2p:nth-child(3n){margin-right:0;float:right}.Sidebar-module--sidebar--X4z2p:nth-child(3n+1){clear:both}.Sidebar-module--sidebar__inner--Jdc5s{padding:2.5rem}}.Layout-module--layout--3Pyz6{max-width:66.875rem;margin-left:auto;margin-right:auto}.Layout-module--layout--3Pyz6:before{content:"";display:table}.Layout-module--layout--3Pyz6:after{content:"";display:table;clear:both}.Feed-module--feed__item--2D5rE{margin-bottom:2.03125rem}.Feed-module--feed__item--2D5rE:last-child{margin-bottom:.8125rem}.Feed-module--feed__item-title--3nigr{font-size:1.6875rem;line-height:2.4375rem;margin-top:0;margin-bottom:.8125rem}.Feed-module--feed__item-title-link--iFMRs{color:#222}.Feed-module--feed__item-title-link--iFMRs:focus,.Feed-module--feed__item-title-link--iFMRs:hover{color:#222;border-bottom:1px solid #222}.Feed-module--feed__item-description--1uO8e{font-size:1rem;line-height:1.625rem;margin-bottom:1.21875rem}.Feed-module--feed__item-meta-time--3t1fg{font-size:.875rem;color:#222;font-weight:600;text-transform:uppercase}.Feed-module--feed__item-meta-divider--N-Q0A{margin:0 .3125rem}.Feed-module--feed__item-meta-category-link--23f8F{font-size:.875rem;color:#f7a046;font-weight:600;text-transform:uppercase}.Feed-module--feed__item-meta-category-link--23f8F:focus,.Feed-module--feed__item-meta-category-link--23f8F:hover{color:#5d93ff}.Feed-module--feed__item-readmore--1u6bI{font-size:1rem;color:#5d93ff}.Feed-module--feed__item-readmore--1u6bI:focus,.Feed-module--feed__item-readmore--1u6bI:hover{color:#5d93ff;border-bottom:1px solid #5d93ff}.Page-module--page--2nMky{margin-bottom:3.25rem}.Page-module--page__inner--2M_vz{padding:1.5625rem 1.25rem}.Page-module--page__title--GPD8L{font-size:2.5rem;font-weight:600;line-height:3.25rem;margin-top:0;margin-bottom:2.35625rem}.Page-module--page__body--Ic6i6{font-size:1rem;line-height:1.625rem;margin:0 0 1.625rem}@media screen and (min-width:685px){.Page-module--page--2nMky{width:calc(58.275% - .78125rem)}.Page-module--page--2nMky:nth-child(1n){float:left;margin-right:1.875rem;clear:none}.Page-module--page--2nMky:last-child{margin-right:0}.Page-module--page--2nMky:nth-child(12n){margin-right:0;float:right}.Page-module--page--2nMky:nth-child(12n+1){clear:both}.Page-module--page__inner--2M_vz{padding:1.875rem 1.25rem}}@media screen and (min-width:960px){.Page-module--page--2nMky{width:calc(66.6% - .625rem)}.Page-module--page--2nMky:nth-child(1n){float:left;margin-right:1.875rem;clear:none}.Page-module--page--2nMky:last-child{margin-right:0}.Page-module--page--2nMky:nth-child(3n){margin-right:0;float:right}.Page-module--page--2nMky:nth-child(3n+1){clear:both}.Page-module--page__inner--2M_vz{padding:2.5rem 2.1875rem}}.Pagination-module--pagination--2H3nO{margin-top:3.25rem;display:-webkit-box;display:flex}.Pagination-module--pagination__prev--bet5s{width:50%;text-align:left}.Pagination-module--pagination__prev-link--1Nzs6{color:#f7a046;font-size:1.625rem;font-weight:700}.Pagination-module--pagination__prev-link--1Nzs6:focus,.Pagination-module--pagination__prev-link--1Nzs6:hover{color:#5d93ff}.Pagination-module--pagination__prev-link--disable--Yklx9{pointer-events:none;color:#bbb}.Pagination-module--pagination__next--3hFiN{width:50%;text-align:right}.Pagination-module--pagination__next-link--3FUtA{color:#f7a046;font-size:1.625rem;font-weight:700}.Pagination-module--pagination__next-link--3FUtA:focus,.Pagination-module--pagination__next-link--3FUtA:hover{color:#5d93ff}.Pagination-module--pagination__next-link--disable--30UwZ{pointer-events:none;color:#bbb}.Author-module--author--2Yefr{border-top:1px solid #e6e6e6;max-width:40rem;padding-top:1.25rem;line-height:1.625rem;margin-top:1.625rem;margin-bottom:3.25rem}.Author-module--author__bio-twitter--n-O9n{display:block;text-decoration:underline}@media screen and (min-width:685px){.Author-module--author--2Yefr{margin-left:auto;margin-right:auto}}.Content-module--content--3p512{max-width:59.0625rem;padding:0 .9375rem;margin:0 auto}.Content-module--content__title--2BDW9{font-size:2rem;max-width:40rem;font-weight:600;text-align:center;line-height:2.68125rem;margin:1.625rem auto 0}.Content-module--content__body--2TrQ- figure{margin-bottom:1.625rem}.Content-module--content__body--2TrQ- figure blockquote{font-style:italic;text-align:center;margin-top:0;padding:1.625rem 0}.Content-module--content__body--2TrQ- figure blockquote p{max-width:40rem;font-size:1.6817rem;margin-top:0;margin-bottom:1.625rem;line-height:2.4375rem}.Content-module--content__body--2TrQ- a{text-decoration:underline}.Content-module--content__body--2TrQ- *{max-width:40rem;margin-left:auto;margin-right:auto}.Content-module--content__body--2TrQ- img{max-width:100%}@media screen and (min-width:960px){.Content-module--content--3p512{padding:0}.Content-module--content__title--2BDW9{font-size:3rem;line-height:3.65625rem;margin-top:3.65625rem;margin-bottom:2.4375rem}.Content-module--content__body--2TrQ-,.Content-module--content__body--2TrQ- p{font-size:1.125rem;line-height:1.82813rem;margin-bottom:1.82813rem}}.Meta-module--meta__date--29eD7{font-style:italic}.Tags-module--tags--1L_ct{margin-bottom:.8125rem}.Tags-module--tags__list--91FqN{list-style:none;margin:0 -.625rem;padding:0}.Tags-module--tags__list-item--1M30P{display:inline-block;margin:.625rem .3125rem}.Tags-module--tags__list-item-link--3SL_8{display:inline-block;height:35px;padding:0 1.5rem;line-height:2.1875rem;border:1px solid #e6e6e6;text-decoration:none;border-radius:1.25rem;color:#222}.Tags-module--tags__list-item-link--3SL_8:focus,.Tags-module--tags__list-item-link--3SL_8:hover{color:#5d93ff}.Post-module--post__comments--25y6I,.Post-module--post__footer--3WzWU{max-width:40rem;margin:0 auto;padding:0 .9375rem}.Post-module--post__home-button--16Kl0{display:block;max-width:5.625rem;height:35px;padding:0 1.5rem;line-height:2.1875rem;text-align:center;color:#222;border:1px solid #e6e6e6;border-radius:1.25rem;font-size:1rem;font-weight:400;margin-left:auto;margin-right:auto;margin-top:1.625rem}.Post-module--post__home-button--16Kl0:focus,.Post-module--post__home-button--16Kl0:hover{color:#5d93ff}@media screen and (min-width:960px){.Post-module--post__comments--25y6I,.Post-module--post__footer--3WzWU{padding:0}.Post-module--post__home-button--16Kl0{position:fixed;max-width:auto;margin:0;top:30px;left:30px}}</style><meta name="generator" content="Gatsby 2.18.6"/><link rel="alternate" type="application/rss+xml" title="Get reactified" href="/rss.xml"/><style type="text/css">.gatsby-resp-image-image{width:100%;height:100%;margin:0;vertical-align:middle;position:absolute;top:0;left:0;color:transparent;}</style><style type="text/css"> 2 .anchor { 3 float: left; 4 padding-right: 4px; 5 margin-left: -20px; 6 } 7 h1 .anchor svg, 8 h2 .anchor svg, 9 h3 .anchor svg, 10 h4 .anchor svg, 11 h5 .anchor svg, 12 h6 .anchor svg { 13 visibility: hidden; 14 } 15 h1:hover .anchor svg, 16 h2:hover .anchor svg, 17 h3:hover .anchor svg, 18 h4:hover .anchor svg, 19 h5:hover .anchor svg, 20 h6:hover .anchor svg, 21 h1 .anchor:focus svg, 22 h2 .anchor:focus svg, 23 h3 .anchor:focus svg, 24 h4 .anchor:focus svg, 25 h5 .anchor:focus svg, 26 h6 .anchor:focus svg { 27 visibility: visible; 28 } 29 </style>
29<script> 30 document.addEventListener("DOMContentLoaded", function(event) { 31 var hash = window.decodeURI(location.hash.replace('#', '')) 32 if (hash !== '') { 33 var element = document.getElementById(hash) 34 if (element) { 35 var offset = element.offsetTop 36 // Wait for the browser to finish rendering before scrolling. 37 setTimeout((function() { 38 window.scrollTo(0, offset - 0) 39 }), 0) 40 } 41 } 42 }) 43 </script>
43<link rel="preconnect dns-prefetch" href="https://www.google-analytics.com"/>
vendor: 66 bytes, line 43
43<script async="" src="https://www.googletagmanager.com/gtag/js?id=
43UA-73379983-2
vendor: 11 bytes, line 43
43"></script>
43<script> 44 45 46 if(true) { 47 window.dataLayer = window.dataLayer || []; 48 function gtag(){window.dataLayer && window.dataLayer.push(arguments);} 49 gtag('js', new Date()); 50 51 gtag('config', 'UA-73379983-2', {"send_page_view":false}); 52 } 53 </script>
53<link rel="sitemap" type="application/xml" href="/sitemap.xml"/><link rel="icon" href="/icons/icon-48x48.png?v=632592752103a8551364185372c9ec4d"/><link rel="manifest" href="/manifest.webmanifest"/><meta name="theme-color" content="#F7A046"/><link rel="apple-touch-icon" sizes="48x48" href="/icons/icon-48x48.png?v=632592752103a8551364185372c9ec4d"/><link rel="apple-touch-icon" sizes="72x72" href="/icons/icon-72x72.png?v=632592752103a8551364185372c9ec4d"/><link rel="apple-touch-icon" sizes="96x96" href="/icons/icon-96x96.png?v=632592752103a8551364185372c9ec4d"/><link rel="apple-touch-icon" sizes="144x144" href="/icons/icon-144x144.png?v=632592752103a8551364185372c9ec4d"/><link rel="apple-touch-icon" sizes="192x192" href="/icons/icon-192x192.png?v=632592752103a8551364185372c9ec4d"/><link rel="apple-touch-icon" sizes="256x256" href="/icons/icon-256x256.png?v=632592752103a8551364185372c9ec4d"/><link rel="apple-touch-icon" sizes="384x384" href="/icons/icon-384x384.png?v=632592752103a8551364185372c9ec4d"/><link rel="apple-touch-icon" sizes="512x512" href="/icons/icon-512x512.png?v=632592752103a8551364185372c9ec4d"/><title data-react-helmet="true">Copying the correct way in js - Get reactified</title><meta data-react-helmet="true" name="description" content="Being a developer you would have copied variables, objects or complex structures in js, but did you do that in a correct way. Let's find out by decoding the art of copying in js. Yes, you read it correctly, copying is an art in js too :)"/><meta data-react-helmet="true" property="og:site_name" content="Copying the correct way in js - Get reactified"/><meta data-react-helmet="true" property="og:image" content="https://reactify.me/raj.jpg"/><meta data-react-helmet="true" name="twitter:card" content="summary"/><meta data-react-helmet="true" name="twitter:title" content="Copying the correct way in js - Get reactified"/><meta data-react-helmet="true" name="twitter:description" content="Being a developer you would have copied variables, objects or complex structures in js, but did you do that in a correct way. Let's find out by decoding the art of copying in js. Yes, you read it correctly, copying is an art in js too :)"/><meta data-react-helmet="true" name="twitter:image" content="https://reactify.me/raj.jpg"/><link as="script" rel="preload" href="/component---src-templates-post-template-js-60157e4eb8bf6120b802.js"/><link as="script" rel="preload" href="/app-d6717531ffce1ad172a4.js"/><link as="script" rel="preload" href="/styles-202e1dd43dc66df3b3e9.js"/><link as="script" rel="preload" href="/netlify-identity-widget-60959a2fff1be043f603.js"/><link as="script" rel="preload" href="/commons-6298b771547fbebcfc1b.js"/><link as="script" rel="preload" href="/webpack-runtime-02f37fde05b4273be573.js"/><link as="fetch" rel="preload" href="/page-data/posts/copying-the-correct-way-in-js/page-data.json" crossorigin="anonymous"/></head><body><noscript id="gatsby-noscript">This app works best with JavaScript enabled.</noscript><div id="___gatsby"><div style="outline:none" tabindex="-1" role="group" id="gatsby-focus-wrapper"><div class="Layout-module--layout--3Pyz6"><div><a class="Post-module--post__home-button--16Kl0" href="/">All Articles</a><div><div class="Content-module--content--3p512"><h1 class="Content-module--content__title--2BDW9">Copying the correct way in js</h1><div class="Content-module--content__body--2TrQ-"><p>In this blog we will deep dive various possible ways by which we can create a copy of a variable, object, array or nested structure in javascript.</p> 54<p>Lets us start with the simplest way of copying a value which is the assignment operator.</p> 55<p><strong>The Assignment Operator</strong> <strong>( = )</strong></p> 56<p>Its so easy to copy or assign a value to another object by using the = operator. </p> 57<div class="gatsby-highlight" data-language="text"><pre class="language-text"><code class="language-text">let originalVar=1</code></pre></div> 58<div class="gatsby-highlight" data-language="text"><pre class="language-text"><code class="language-text">let copyVar = orignialVar</code></pre></div> 59<div class="gatsby-highlight" data-language="text"><pre class="language-text"><code class="language-text">originalVar=2</code></pre></div> 60<div class="gatsby-highlight" data-language="text"><pre class="language-text"><code class="language-text">console.log(copyVar) OUTPUT-->1</code></pre></div> 61<p>As you saw that the changes in value of originalVar caused no changes in its copy, so assignment operator work fine when you are copying primitive values.</p> 62<p>Now let us consider an object and copy it using assignment operator.</p> 63<div class="gatsby-highlight" data-language="text"><pre class="language-text"><code class="language-text">let originalObj = {a:1}</code></pre></div> 64<div class="gatsby-highlight" data-language="text"><pre class="language-text"><code class="language-text">let copyObj = originalObj</code></pre></div> 65<div class="gatsby-highlight" data-language="text"><pre class="language-text"><code class="language-text">originalObj.a=2</code></pre></div> 66<div class="gatsby-highlight" data-language="text"><pre class="language-text"><code class="language-text">console.log(copyObj) OUTPUT-->{a=2}</code></pre></div> 67<p>So this time change in orignal object caused changes in other, so the first thumb rule, assignment operator will cause the value of other identifier to change if the value copied to it is non primitive and is changed.</p> 68<blockquote> 69<p>Do you know array is also of type object in js, so you are smart enough to understand how copying with this technique will work with it.</p> 70</blockquote></div></div></div><div class="Post-module--post__footer--3WzWU"><div><p class="Meta-module--meta__date--29eD7">Published <!-- -->1 Sep 2019</p></div><div class="Tags-module--tags--1L_ct"><ul class="Tags-module--tags__list--91FqN"><li class="Tags-module--tags__list-item--1M30P"><a class="Tags-module--tags__list-item-link--3SL_8" href="/tag/javascript/">Javascript</a></li><li class="Tags-module--tags__list-item--1M30P"><a class="Tags-module--tags__list-item-link--3SL_8" href="/tag/clone/">Clone</a></li><li class="Tags-module--tags__list-item--1M30P"><a class="Tags-module--tags__list-item-link--3SL_8" href="/tag/copying-objects/">Copying objects</a></li><li class="Tags-module--tags__list-item--1M30P"><a class="Tags-module--tags__list-item-link--3SL_8" href="/tag/deep-copy/">Deep copy</a></li><li class="Tags-module--tags__list-item--1M30P"><a class="Tags-module--tags__list-item-link--3SL_8" href="/tag/shallow-copy/">Shallow Copy</a></li></ul></div><div class="Author-module--author--2Yefr"><p>Professional Developer, Passionate Footballer .<a class="Author-module--author__bio-twitter--n-O9n" href="https://www.twitter.com/#" rel="noopener noreferrer" target="_blank"><strong>Raj Saraogi</strong> on Twitter</a></p></div></div><div class="Post-module--post__comments--25y6I"></div></div></div></div></div>
70<script id="gatsby-script-loader">/*<![CDATA[*/window.pagePath="/posts/copying-the-correct-way-in-js/";/*]]>*/</script>
70<script id="gatsby-chunk-mapping">/*<![CDATA[*/window.___chunkMapping={"app":["/app-d6717531ffce1ad172a4.js"],"component---node-modules-gatsby-plugin-offline-app-shell-js":["/component---node-modules-gatsby-plugin-offline-app-shell-js-29e327e8790fcc937b11.js"],"component---src-templates-not-found-template-js":["/component---src-templates-not-found-template-js-03a49449e1a83219ee25.js"],"component---src-templates-tags-list-template-js":["/component---src-templates-tags-list-template-js-baa35003cfaba412c873.js"],"component---src-templates-categories-list-template-js":["/component---src-templates-categories-list-template-js-c80da1deed6cdc790507.js"],"component---src-templates-page-template-js":["/component---src-templates-page-template-js-814e63885548285c5ec8.js"],"component---src-templates-post-template-js":["/component---src-templates-post-template-js-60157e4eb8bf6120b802.js"],"component---src-templates-tag-template-js":["/component---src-templates-tag-template-js-3bd87cb3691af10384b2.js"],"component---src-templates-category-template-js":["/component---src-templates-category-template-js-6cafed3f19330b898a97.js"],"component---src-templates-index-template-js":["/component---src-templates-index-template-js-690b599fe96973995f6a.js"]};/*]]>*/</script>
70<script async src='https://d33wubrfki0l68.cloudfront.net/bundles/3952bc0f6f76bee9937ce089ab36d097fbc35e2d.js'></script>
70</body></html>
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.