lib/formatter/formatter.js
function gatherHeaders(item) {
    var ret, i, l;
    if (isHashArray(item)) {
        //lets assume a multidimesional array with item 0 bing the title
        i = -1;
        l = item.length;
        ret = [];
        while (++i < l) {
            ret[i] = item[i][0];
        }
    } else if (isArray(item)) {
        ret = item;
    } else {
        ret = keys(item);
    }
    return ret;
}
function gatherHeaders(item) {
    var ret, i, l;
    if (isHashArray(item)) {
        //lets assume a multidimesional array with item 0 bing the title
        i = -1;
        l = item.length;
        ret = [];
        while (++i < l) {
            ret[i] = item[i][0];
        }
    } else if (isArray(item)) {
        ret = item;
    } else {
        ret = keys(item);
    }
    return ret;
}
function gatherHeaders ( item ) { var ret , i , l ; if ( isHashArray ( item ) ) { //lets assume a multidimesional array with item 0 bing the title i = - 1 ; l = item . length ; ret = [ ] ; while ( ++ i < l ) { ret [ i ] = item [ i ] [ 0 ] ; } } else if ( isArray ( item ) ) { ret = item ; } else { ret = keys ( item ) ; } return ret ; }
get headers from a row item
get headers from a row item