Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F121703017
index.js
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sun, Jul 13, 07:31
Size
724 B
Mime Type
text/x-Algol68
Expires
Tue, Jul 15, 07:31 (2 d)
Engine
blob
Format
Raw Data
Handle
27377047
Attached To
rOACCT Open Access Compliance Check Tool (OACCT)
index.js
View Options
import
{
__assign
}
from
"tslib"
;
import
{
noCase
}
from
"no-case"
;
export
function
pascalCaseTransform
(
input
,
index
)
{
var
firstChar
=
input
.
charAt
(
0
);
var
lowerChars
=
input
.
substr
(
1
).
toLowerCase
();
if
(
index
>
0
&&
firstChar
>=
"0"
&&
firstChar
<=
"9"
)
{
return
"_"
+
firstChar
+
lowerChars
;
}
return
""
+
firstChar
.
toUpperCase
()
+
lowerChars
;
}
export
function
pascalCaseTransformMerge
(
input
)
{
return
input
.
charAt
(
0
).
toUpperCase
()
+
input
.
slice
(
1
).
toLowerCase
();
}
export
function
pascalCase
(
input
,
options
)
{
if
(
options
===
void
0
)
{
options
=
{};
}
return
noCase
(
input
,
__assign
({
delimiter
:
""
,
transform
:
pascalCaseTransform
},
options
));
}
//# sourceMappingURL=index.js.map
Event Timeline
Log In to Comment