I have this array, and wanted to show the data contained within it how do I?
var questions = [["test ss aa","test asdd as"],["test a","test asxc a"],["test xs aws","test scaca"]]
Thank you
I have this array, and wanted to show the data contained within it how do I?
var questions = [["test ss aa","test asdd as"],["test a","test asxc a"],["test xs aws","test scaca"]]
Thank you
let result = function() {
let hist = {};
return arr.reduce(function(previous, current) {
if (current in hist) {
previous[hist[current]][2]++;
} else {
previous[hist[current] = previous.length] = current.concat(1);
}
return previous;
}, []);
}();