code: function ensureActionType(action, type, mapActionType) {
    return Object.assign(
      {},
      action,
      {
        type: action.type ? mapActionType(action.type) : mapActionType(type),
      }
    );
  }
docs: Utils