@baseplate-dev/react-generators
Version:
React Generators for Baseplate
17 lines • 458 B
JavaScript
import { titleize, underscore } from 'inflection';
export function lowerCaseFirst(str) {
if (str.length === 0) {
return str;
}
return str.charAt(0).toLowerCase() + str.slice(1);
}
export function upperCaseFirst(str) {
if (str.length === 0) {
return str;
}
return str.charAt(0).toUpperCase() + str.slice(1);
}
export function titleizeCamel(str) {
return titleize(underscore(str));
}
//# sourceMappingURL=case.js.map