code: function getDomain(data, accessor) {
        return data
          .map(function (item) {
            return accessor.call(this, item);
          })
          .filter(function (item, index, array) {
            return array.indexOf(item) === index;
          });
      }
docs: Creates a unique array of items