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

Merge branch 'pregmod-master' into 'pregmod-master'

capFirstChar()

See merge request pregmodfan/fc-pregmod!1942
parents b097dd6b be66d352
No related branches found
No related tags found
2 merge requests!2047RA rework,!1942capFirstChar()
...@@ -3688,6 +3688,10 @@ window.weightedArray2HashMap = function weightedArray2HashMap(arr) { ...@@ -3688,6 +3688,10 @@ window.weightedArray2HashMap = function weightedArray2HashMap(arr) {
return obj; return obj;
}; };
   
window.capFirstChar = function capFirstChar(string) {
return string.charAt(0).toUpperCase() + string.substr(1);
}
/*:: Span Macro JS [script]*/ /*:: Span Macro JS [script]*/
   
/* /*
......
...@@ -470,3 +470,7 @@ window.weightedArray2HashMap = function weightedArray2HashMap(arr) { ...@@ -470,3 +470,7 @@ window.weightedArray2HashMap = function weightedArray2HashMap(arr) {
}) })
return obj; 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.
Finish editing this message first!
Please register or to comment