first commit

This commit is contained in:
DanielRamirezGe
2020-01-14 20:43:08 -06:00
parent 3557894f7f
commit 5eecfbf6cd
26326 changed files with 2434803 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
import { isString } from './inspect';
/**
* Transform the first character to uppercase
* @param {string} str
*/
var upperFirst = function upperFirst(str) {
if (!isString(str)) {
str = String(str);
}
str = str.trim();
return str.charAt(0).toUpperCase() + str.slice(1);
};
export default upperFirst;