Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- export default function namespaceActions(actions, namespace) {
- const namespacedActions = {};
- actions.forEach((key) => {
- namespacedActions[key.toUpperCase()] = `${namespace.toUpperCase()}_${key}`;
- });
- return namespacedActions;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement