Last active
July 28, 2016 03:27
-
-
Save ku/de02f99aa82633a91f1aca8cfa3e6664 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
Object.keys(Case).map(function (k) { | |
if (Case[k] instanceof Function) {return k} | |
}).filter(function (x) {return x} ).reduce(function (h, k) { | |
h[k] = Case[k]("attrClass"); return h | |
}, {}) | |
{ | |
"of": "camel", | |
"flip": "ATTRcLASS", | |
"random": "aTTrClaSs", | |
"lower": "attr class", | |
"snake": "attr_class", | |
"constant": "ATTR_CLASS", | |
"camel": "attrClass", | |
"kebab": "attr-class", | |
"upper": "ATTR CLASS", | |
"capital": "Attr Class", | |
"pascal": "AttrClass", | |
"title": "Attr Class", | |
"sentence": "Attr class", | |
"squish": "AttrClass" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment