code: function mergeObjArr(arr) {
    var base = _assign3.default.apply(_assign3.default.apply.placeholder, [{}].concat(_toConsumableArray(arr)));
    var styles = (0, _flatten3.default)((0, _compact3.default)((0, _map3.default)(arr, 'styles')));
    if (styles.length > 1) {
      base.styles = styles;
    }
    return base;
  }
docs: aggregates a set of functions/objects into a constant part + a dynamic part