I want to find the maximum of a nested array, something like this:
a = [[1,2],[20,3]] d3.max(d3.max(a)) // 20
but my array contains a text
You can flatten an array and apply a function to each member
Array.prototype.flatten= function(fun){ if(typeof fun!= 'function') fun= ''; var A= [], L= this.length, itm; for(var i= 0; i