'use strict';

const { set } = require('../../../../utilities');

const assembleActions = function ({ actions }) {
  return actions.reduce(
    (response, { data, actionPath }) => set(response, actionPath, data),
    {},
  );
};

module.exports = {
  assembleActions,
};

@@ -59,16 +59,65 @@
 ies');%0A%0A
+// Merge all actions into a single nested object%0A
 const as

Add comment