mbostock/d3 — Issue #360: d3.min and d3.max and sparse arrays
Author: mbostock
Created: 2011-11-03 16:26:40+00:00
State: open
Labels: bug

If you have a sparse array, such as [0,1,,,,5,6], the missing elements are ignored by array.map. However, with d3.min and d3.max, we still attempt to access these values with the accessor. I think for consistency with array.map, we should skip these values, even if the accessor would return something that is not undefined.