How to use the decapitalize function from underscore.string
Find comprehensive JavaScript underscore.string.decapitalize code examples handpicked from public code repositorys.
GitHub: guyoung/CaptfEncoder
15 16 17 18 19 20 21 22 23 24 25
/** * * @param str */ function decapitalize(str) { return _s.decapitalize(str); } /** *
183
970
0
+ 4 other calls in file
46 47 48 49 50 51 52 53 54
this.slugifiedName = slugify(this.moduleName); this.slugifiedNameCapitalize = _.camelize(this.moduleName); this.slugifiedNameCamelize = s.decapitalize(this.moduleName); // Get Directives from user config this.modules = this.config.get('directives');
0
0
0
1 2 3 4 5 6 7 8 9 10 11
module.exports = { getNameCamel: name => { const temp = _.underscored(name); if (temp.startsWith('get_')) { return _.decapitalize(name.substr(3)); } return name; }, getNameSnake: name => {
0
0
0
underscore.string.slugify is the most popular function in underscore.string (323 examples)