Answer the question
In order to leave comments, you need to log in
Underscore js loop through all elements of multidimensional array?
there is an object
how can i loop through all the columns and execute the function? For example
self.options['series'] = _.uniq(data, function(item, key, a) {
return item.series;
});
Answer the question
In order to leave comments, you need to log in
var arr = ;
var newArr = arr.map(function recur(el) {
return !el.forEach? el * 3: el.map(recur);
})
console.log(newArr);
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question