Gitiles
Code Review
Sign In
gerrit.opencord.org
/
xos-gui
/
c8f2314607ffa51f6224f776f1e831c9fbd13d45
/
.
/
src
/
app
/
template
/
filters
/
capitalize.ts
blob: 8325eb765422551d9e4663edbdd48d13f0c38aed [
file
] [
log
] [
blame
]
Matteo Scandolo
5053cbe
2017-01-31 17:37:56 -0800
[
diff
] [
blame
]
1
export
function
capitalize
()
{
2
return
function
(
input
:
string
)
{
3
return
(!!
input
)
?
input
.
charAt
(
0
).
toUpperCase
()
+
input
.
substr
(
1
).
toLowerCase
()
:
''
;
4
};
5
}
6