Show data from a 2d array in ReactNative

0

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

    
asked by anonymous 19.05.2017 / 10:56

1 answer

0
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;
    }, []);
}();
    
19.05.2017 / 15:29