Javascript object defaulting
<p>I want a code-golf solution for something that does the equivalent of the following:</p>

<pre><code>myFunc = function( config ){
    if ( typeof config !== 'object' ) { config = {}; }

    config.property = config.property || 123;
};
</code></pre>

<p>Basically, is there a shorter way to ensure I am always passing an object, create it if not, and assign random values to it?</p>
