Sign in
cobalt
/
cobalt
/
f585e2638bbd137762988742fc2cbe613293dc58
/
.
/
src
/
cobalt
/
debug
/
remote
/
devtools
/
node_modules
/
@babel
/
types
/
scripts
/
utils
/
toFunctionName.js
blob: 627c9a7d8f0156ad9fa36f7b7d426d548e276d79 [
file
] [
log
] [
blame
]
module
.
exports
=
function
toFunctionName
(
typeName
)
{
const
_
=
typeName
.
replace
(
/^TS/
,
"ts"
).
replace
(
/^JSX/
,
"jsx"
);
return
_
.
slice
(
0
,
1
).
toLowerCase
()
+
_
.
slice
(
1
);
};