8 lines
134 B
JavaScript
Raw Normal View History

export default (search, secondary = () => {}) => scope => {
return {
scope: scope,
...search(),
...secondary(),
};
};