Files
talk/graph/mutators/index.js
T
2017-02-01 19:53:37 -05:00

18 lines
366 B
JavaScript

const _ = require('lodash');
const Comment = require('./comment');
const Action = require('./action');
module.exports = (context) => {
// We need to return an object to be accessed.
return _.merge(...[
Comment,
Action,
].map((mutators) => {
// Each set of mutators is a function which takes the context.
return mutators(context);
}));
};