If I create a jQuery wrapped set and put it into console.log, it will look like

I know that we can “trick” the console in displaying objects or arrays, that means if we have
var obj = {
0: 'some',
1: 'data'
};
it will output as

But if we add a splice method and length property, it will become

Question: How can I create a function, that creates such an array-like object, but still shows in the console as a function like jQuery does ? I don’t understand the jQuery code for that.
result like: myFunction( "some", "data" )
Update:
It seems like I didn’t make myself clear enough. I want to know, how I can create and setup a function, a constructor, whatever to have an array-like object which prints in the console as a function( elem1, elem2, ...). A perfect answer contains a quick example for that.
The default appearance of a jQuery object in the firebug console is
Object[one, two, ...].You can have the same thing if you use an
array-like objectwith a constructor. As in the Chad response.But in your case, you got a “special appearance” for jQuery objects because of a Firefox plugin called FireQuery : http://firequery.binaryage.com/
As far as i know, you can’t have the same result in the firebug console. Except if you make your own plugin.