UNPKG
@e22m4u/js-repository
Version:
latest (0.8.5)
0.8.5
0.8.4
0.8.3
0.8.2
0.8.1
0.8.0
0.7.0
0.6.5
0.6.4
0.6.3
0.6.2
0.6.1
0.6.0
0.5.8
0.5.7
0.5.6
0.5.5
0.5.4
0.5.3
0.5.2
0.5.1
0.5.0
0.4.0
0.3.3
0.3.2
0.3.1
0.3.0
0.2.7
0.2.6
0.2.5
0.2.4
0.2.3
0.2.2
0.2.1
0.1.26
0.1.25
0.1.24
0.1.23
0.1.22
0.1.21
0.1.20
0.1.19
0.1.18
0.1.17
0.1.16
0.1.15
0.1.14
0.1.13
0.1.12
0.1.10
0.1.9
0.1.8
0.1.7
0.1.6
0.1.5
0.1.4
0.1.3
0.1.2
0.1.1
0.1.0
0.0.42
0.0.41
0.0.40
0.0.39
0.0.38
0.0.37
0.0.36
0.0.35
0.0.34
0.0.33
0.0.32
0.0.31
Реализация репозитория для работы с базами данных
gitrepos.ru/e22m4u/js-repository
@e22m4u/js-repository
/
src
/
utils
/
capitalize.js
11 lines
(10 loc)
•
231 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
/** * Capitalize. * *
@param
{string} string *
@returns
{string} */
export
function
capitalize
(
string
)
{
if
(!
string
|| typeof
string
!==
'string'
)
return
string
;
return
string
.
charAt
(
0
).
toUpperCase
() +
string
.
slice
(
1
); }