score:0

as @wergeld pointed out, there's no binding capability so i used underscore to get what i wanted

    var templist = null;
    var finallist = [];

    // use underscore to get count of each number and store in templist

    templist = _.countby(array, function(hour, index){
        return currentdiscinhourformat;
    });

    //loop through the key/val obj that gets produced from templist and set a multidimensional array in finallist

    for(var key in templist){
        finallist.push([key, templist[key]]);
    }

Related Query

More Query from same tag