Copy object properties to a new object and delete the new (not by reference)
<p>I have a Javascript array of objects, which is initialised with some values. 
I want to copy those values to a new array of objects, but without referencing to the original one.
Then i want to manipulate the new object as i wish.</p>

<p>I tried <code>objectOptions.concat()</code> like in this  sample code but it then deletes also the referenced original object:</p>

<pre><code>var objectOptions = [{option1: 'value1', someOption: 'value2'}];

function objectClean(){
    var newObjectOptions = objectOptions.concat();
    for(var i in newObjectOptions )
    {
        delete newObjectOptions[i]['someOption'];
    }
    return newObjectOptions ;

};
</code></pre>
