JavaScript Library, how to return if no action
<p>Im making a small Library that will help small/large functions in my Library... it all works fine but if I just want to return the object I want to do it like so <code>_(".class");</code> just like jQuery's one...</p>

<p>This is the base code for my one...</p>

<pre><code>var Test = function(elm){
                if(elm != undefined){
                    Test.DOMSelection(elm);
                }


                return {
                    html:function(newHTML){
                        return Test.html(newHTML);
                    }
                };
            };
</code></pre>

<p>How can I test if anything is at the end after the selector like _(".class").bla &lt;-- This bla is at the end... how do i test if their is anything there?</p>
