Created
March 26, 2020 00:26
-
-
Save zGrav/0287c355df7fc90564c3f7f9bef14fd6 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 keyMirror = (actions: string[]) => { | |
const mirror: Partial<any> = {}; | |
actions.forEach(action => { | |
mirror[action] = action; | |
}); | |
return mirror; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment