code: function genTicks(min, max, count) {
    var assign;
  
    if (max < min) {
      (assign = [max, min], min = assign[0], max = assign[1]);
    }
  
    var step = tickStep(min, max, count);
    var first = Math.floor(min / step) * step;
    var ticks$$1 = [first];
    var cur = first;
  
    while (cur < max) {
      cur += step;
      ticks$$1.push(cur);
    }
  
    if (Math.abs(min - ticks$$1[1]) < step) {
      ticks$$1.shift();
      ticks$$1[0] = min;
    }
  
    if (Math.abs(max - ticks$$1[ticks$$1.length - 2]) < step) {
      ticks$$1.pop();
      ticks$$1[ticks$$1.length - 1] = max;
    }
  
    return ticks$$1
  }
docs: Returns nick ticks