code: function simpleArrayToArray(simpleArray) {
    return simpleArray
      .map(function(el, index) {
        return {
          color: el,
          offset: simpleArray.length === 1 ? 0 : index / (simpleArray.length - 1)
        };
      })
      .filter(function(o) {
        return o.color !== "";
      });
  }
docs: Given a simple array of css color strings, eg. ["red", "orange", "black"],
  return an evenly spaced array suitable to instantiate a color map.
  @private
  @param  {String[]} simpleArray A simple array of css color strings, eg. ["red", "orange", "black"].
  @return {Object[]} An array of {color, offset} objects.