Created
June 27, 2018 14:29
-
-
Save stephenwil/a283652960c1b85655cbd03f6944392e 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
const mapEnum = (type: any, value: any) => { | |
const x = findKey(type, (v: any,i: any, a: any) => { | |
// console.log(v,i,a,v2); | |
return v === value | |
}); | |
console.log(x); | |
return x; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment