Sha256: b6148bd9ad090d98f38292c78f280f6060fc304ff6d2a37ed4fe1eba44674927

Contents?: true

Size: 460 Bytes

Versions: 4

Compression:

Stored size: 460 Bytes

Contents

d3.max = function(array, f) {
  var i = -1,
      n = array.length,
      a,
      b;
  if (arguments.length === 1) {
    while (++i < n && !((a = array[i]) != null && a <= a)) a = undefined;
    while (++i < n) if ((b = array[i]) != null && b > a) a = b;
  } else {
    while (++i < n && !((a = f.call(array, array[i], i)) != null && a <= a)) a = undefined;
    while (++i < n) if ((b = f.call(array, array[i], i)) != null && b > a) a = b;
  }
  return a;
};

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
stripchart-0.0.3 lib/stripchart/public/components/d3/src/arrays/max.js
stripmem-0.0.3 lib/stripmem/public/components/d3/src/arrays/max.js
stripmem-0.0.2 lib/stripmem/public/components/d3/src/arrays/max.js
stripmem-0.0.1 lib/stripmem/public/components/d3/src/arrays/max.js