<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Peter Ellis</title>
    <description>The latest articles on DEV Community by Peter Ellis (@almostconverge).</description>
    <link>https://dev.to/almostconverge</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F88752%2F4affc903-7bb9-422b-ac59-eb1fde7939bb.jpg</url>
      <title>DEV Community: Peter Ellis</title>
      <link>https://dev.to/almostconverge</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/almostconverge"/>
    <language>en</language>
    <item>
      <title>I was today() years old when I found out...</title>
      <dc:creator>Peter Ellis</dc:creator>
      <pubDate>Thu, 03 Oct 2019 19:07:33 +0000</pubDate>
      <link>https://dev.to/almostconverge/i-was-today-years-old-when-i-found-out-1clh</link>
      <guid>https://dev.to/almostconverge/i-was-today-years-old-when-i-found-out-1clh</guid>
      <description>&lt;p&gt;The other day I was debugging a page in Chrome: I was staring at a really complex object that had just been logged to the console, looking for a field with a specific name. If only they'd stringified it before logging, I could then copy it into an editor.&lt;/p&gt;

&lt;p&gt;So I just lazily right-clicked the object and...&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fi.ibb.co%2FB3fSVzf%2Fstore.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fi.ibb.co%2FB3fSVzf%2Fstore.png" alt="Store as global variable"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;How had I missed this before?&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fi.ibb.co%2F5R3MKcP%2Fimage.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fi.ibb.co%2F5R3MKcP%2Fimage.png" alt="...and we've got the object as  raw `temp1` endraw !"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I could now call &lt;code&gt;JSON.stringify(temp1)&lt;/code&gt; and the field is mine!&lt;/p&gt;

&lt;p&gt;Of course I checked in Firefox two minutes later and found out they'd implemented not just this feature but "Copy object" too, which would reveal the JSON in a single step.&lt;/p&gt;

&lt;p&gt;But I'll still treasure "Store as global variable" because it also allows you to manipulate said object or call functions.&lt;/p&gt;

&lt;p&gt;Ignorance is like a very loud jackhammer, it feels great to take a step away from it.&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>javascript</category>
      <category>console</category>
    </item>
  </channel>
</rss>
