Creating a helper function using the module pattern, want to make this a safe operation
<p>My dom elements have this pattern for their id's:</p>

<pre><code>id="some-blah-12342"
</code></pre>

<p>or</p>

<pre><code>id="abc-1234"
</code></pre>

<p>So far I have:</p>

<pre><code>SOME_THING.utils = (function() {


   return {
         getObjectId: function(d) {
              ?????????

     }

   };

})();
</code></pre>

<p>Then I will use it like this correct?</p>

<pre><code>var linkId = SOME_THING.utils.getObjectId( $("#some-link").id );
</code></pre>

<p><strong>I want this to work if say the object passed to the function is undefined/nil or whatever.</strong></p>
