jQuery. Call custom function with single $
<pre><code>(function ($) {
    $.fn.test = function () {
        console.log('works');
    };
})(jQuery);

$(document).ready(function () {
    var var1 = $().test(); // works
    var var1 = $.test(); // error: $.test is not a function
});
</code></pre>

<p>Is it possible to call like this $.test() ?
Thank you.</p>
