find obj type of jQuery result
<p>I have the following code produce ["AM123","DR2","F","99"] from the console.log.
Now I want to see what is the type of the result.</p>

<p>The code producing the result is : </p>

<pre><code>$(".stock_splitdata").each(function() {
var $table = $(this);

var values = $("td", $table).map(function() {
return $(this).text();
}).get();
$table.replaceWith(values.join(" "));

});
</code></pre>

<p>My purpose to view the object type is that I want to split the result into four and join them with different padding like ["AM123","DR2","F","99"]  become AM123-----DR2-F--99------</p>

<p>Update: 19/10/2012:</p>

<p>I found the solution as below.But if anyone can optimise the code, please fell free to do so.</p>

<pre><code>if(subtableName == 'stock_splitdata'){

               $(".stock_splitdata").each(function() {
                    var $table = $(this);

                    var values = $("td", $table).map(function() {
                        return $(this).text();
                    }).get();

                    var tmpSKU = padRight(10, values[0], '&amp;nbsp;');
                    tmpSKU = tmpSKU + padRight(4, values[1], '&amp;nbsp;');
                    tmpSKU = tmpSKU + padRight(4, values[2], '&amp;nbsp;');
                    tmpSKU = tmpSKU + padRight(4, values[3], '&amp;nbsp;');

                    $table.replaceWith(tmpSKU);

                });

           }
</code></pre>
