Created
May 24, 2016 20:14
-
-
Save arackaf/4623e575a403d8819c84e65f862796a6 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const namespace = 'contacts.utilities'; | |
function autoNamespace(namespace, object){ | |
Object.keys(object).forEach(k => object[k] = `${namespace}.${object[k]}`); | |
} | |
const actions = { | |
update: 'update' | |
}; | |
export default autoNamespace(namespace, actions); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment