Skip to content
Snippets Groups Projects
Commit be66d352 authored by Pregmodder's avatar Pregmodder
Browse files

capFirstChar()

parent 468a9787
Branches
Tags
2 merge requests!2047RA rework,!1942capFirstChar()
......@@ -3688,6 +3688,10 @@ window.weightedArray2HashMap = function weightedArray2HashMap(arr) {
return obj;
};
 
window.capFirstChar = function capFirstChar(string) {
return string.charAt(0).toUpperCase() + string.substr(1);
}
/*:: Span Macro JS [script]*/
 
/*
......
......@@ -470,3 +470,7 @@ window.weightedArray2HashMap = function weightedArray2HashMap(arr) {
})
return obj;
};
window.capFirstChar = function capFirstChar(string) {
return string.charAt(0).toUpperCase() + string.substr(1);
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment