src/plugins/compact.js
function isColor(value) {
  return value.r != null
    && value.g != null
    && value.b != null
    && value.a != null
    && value.hex != null;
}
function isColor(value) {
  return value.r != null
    && value.g != null
    && value.b != null
    && value.a != null
    && value.hex != null;
}
function isColor ( value ) { return value . r != null && value . g != null && value . b != null && value . a != null && value . hex != null ; }
Use duck typing to distinguish between map and color objects
Use duck typing to distinguish between map and color objects