code: function scale(arr, options) {
      if (!arr || !Array.isArray(arr)) {
          throw new TypeError('Expecting an array');
      }
  
      if (!arr.length) {
          return [];
      }
  
      var fn = options.continuous ? continuous : discrete;
      return fn(arr, options);
  }
docs: scale
  
  @param {number[]} arr - Array to scale
  @param {number} [options.max] - Maximum number to fit in
  @param {number} options.min - Minimum number to fit in
  @param {number} [options.step=1] - Step to use in discrete mode
  @param {boolean} [options.continuous=false] - Use a continuous scale instead of discrete
  @return Array