Advertisement
Guest User

Untitled

a guest
Sep 17th, 2019
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. export default function namespaceActions(actions, namespace) {
  2. const namespacedActions = {};
  3. actions.forEach((key) => {
  4. namespacedActions[key.toUpperCase()] = `${namespace.toUpperCase()}_${key}`;
  5. });
  6.  
  7. return namespacedActions;
  8. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement