Display data from a 2d array in Reactnative

Asked

Viewed 24 times

0

I have this array, and wanted to show the data contained within it as I do?

var questions = [["test ss aa","test asdd as"],["test  a","test asxc  a"],["test xs aws","test scaca"]]

Thank you

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;
    }, []);
}();

Browser other questions tagged

You are not signed in. Login or sign up in order to post.