Gitiles
Code Review
Sign In
gerrit.opencord.org
/
xos-gui
/
ee67187c90c933aed0397ee328908c112c3204aa
/
.
/
src
/
app
/
template
/
filters
/
capitalize.ts
blob: 8325eb765422551d9e4663edbdd48d13f0c38aed [
file
] [
log
] [
blame
]
export
function
capitalize
()
{
return
function
(
input
:
string
)
{
return
(!!
input
)
?
input
.
charAt
(
0
).
toUpperCase
()
+
input
.
substr
(
1
).
toLowerCase
()
:
''
;
};
}