UNPKG
@allurereport/web-classic
Version:
latest (3.8.2)
3.8.2
3.8.1
3.8.0
3.7.0
3.6.2
3.6.1
3.6.0
3.5.0
3.4.1
3.4.0
3.3.1
3.3.0
3.2.0
3.1.0
3.0.1
3.0.0
3.0.0-beta.27
3.0.0-beta.26
3.0.0-beta.25
3.0.0-beta.24
3.0.0-beta.23
3.0.0-beta.22
3.0.0-beta.21
3.0.0-beta.20
3.0.0-beta.19
3.0.0-beta.18
3.0.0-beta.17
3.0.0-beta.16
3.0.0-beta.15
3.0.0-beta.14
3.0.0-beta.13
3.0.0-beta.12
3.0.0-beta.11
3.0.0-beta.10
3.0.0-beta.9
3.0.0-beta.8
3.0.0-beta.7
3.0.0-beta.6
3.0.0-beta.5
3.0.0-beta.4
3.0.0-beta.3
The static files for Allure Classic Report
@allurereport/web-classic
/
src
/
utils
/
capitalize.ts
7 lines
(6 loc)
•
137 B
text/typescript
View Raw
1
2
3
4
5
6
7
export
const
capitalize = (
str
: string) => {
if
(!
str
) {
return
; }
return
str
.
charAt
(
0
).
toLocaleUpperCase
() +
str
.
slice
(
1
); };