Adding Astrojs sources.
This commit is contained in:
parent
2664e6d8fc
commit
e20f4f45de
169 changed files with 11389 additions and 0 deletions
8
src/utils/strings.js
Normal file
8
src/utils/strings.js
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
export const titleCase = (s) => {
|
||||
if (!s) return "";
|
||||
return s
|
||||
.toLowerCase()
|
||||
.split(' ')
|
||||
.map(word => word.charAt(0).toUpperCase() + word.slice(1))
|
||||
.join(' ');
|
||||
};
|
||||
Loading…
Reference in a new issue