code: function(errors) {
        return errors
          .map(function(error) { return error.error; })
          .filter(function(value, index, self) {
            return self.indexOf(value) === index;
          });
      }
docs: In: [{error: "<message 1>", ...}, {error: "<message 2>", ...}] Out: ["<message 1>", "<message 2>"]