Created
June 5, 2015 15:06
-
-
Save tmcw/162516d6a55be419d4d0 to your computer and use it in GitHub Desktop.
This file contains 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
var constants = [ | |
[MAP$QUICK_SWITCHER, "This is the switcher"], | |
[MAP$TOGGLE_CONSTANTS, ""], | |
[MAP$TOGGLE_HISTORY, ""], | |
[MAP$TOGGLE_SETTINGS, ""], | |
[MAP$TOGGLE_ASSETS, ""], | |
[MAP$FULLSCREEN, ""], | |
[MAP$CHEATSHEET, ""] | |
]; | |
module.exports.constants = constants.map(c => c[0]).reduce((memo, key) => { | |
memo[key[0]] = key[0]; | |
return memo; | |
}); | |
module.exports.names = constants.reduce((memo, key) => { | |
memo[key[0]] = key[1]; | |
return memo; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment