Is there a better way to declare an object
<p>Currently I check if sed object already exists as to not wipe it if it does, then create the object.</p>

<pre><code>if (typeof result === 'undefined') {
    results = {};
}
</code></pre>

<p>It's just that I come from using PHP where you don't really have to declare things as much as you do in JS.</p>

<p>Though I tend to use JS objects as I use arrays in PHP, as a way to temporarily store information which I need to access further down in a script.</p>
