javascript object handling
<p>this is my question, how can i delete properties that doesn't exist in the first. </p>

<p>1st object</p>

<pre><code>object1= [1,2,3];
</code></pre>

<p>2st object</p>

<pre><code>object2 = [4];

if (!(object1 in object2) delete object2
</code></pre>
