code: function isColor(value) {
    return value.r != null
      && value.g != null
      && value.b != null
      && value.a != null
      && value.hex != null;
  }
docs: Use duck typing to distinguish between map and color objects