Sha256: 8cad6ecfe5b843ed5cac84c691bba7abeb8449591ba9911e83215a767dbcd5dc
Contents?: true
Size: 567 Bytes
Versions: 25
Compression:
Stored size: 567 Bytes
Contents
d3.extent = function(array, f) { var i = -1, n = array.length, a, b, c; if (arguments.length === 1) { while (++i < n && ((a = c = array[i]) == null || a != a)) a = c = undefined; while (++i < n) if ((b = array[i]) != null) { if (a > b) a = b; if (c < b) c = b; } } else { while (++i < n && ((a = c = f.call(array, array[i], i)) == null || a != a)) a = undefined; while (++i < n) if ((b = f.call(array, array[i], i)) != null) { if (a > b) a = b; if (c < b) c = b; } } return [a, c]; };
Version data entries
25 entries across 25 versions & 1 rubygems