UNPKG
geotic
Version:
latest (4.3.2)
4.3.2
4.3.1
4.3.0
4.2.0
4.1.7
4.1.6
4.1.5
4.1.4
4.1.3
4.1.2
4.1.1
4.1.0
4.0.0
3.5.5
3.5.4
3.5.3
3.5.2
3.5.1
3.5.0
3.4.0
3.3.0
3.2.0
3.1.0
3.0.6
3.0.5
3.0.4
3.0.3
3.0.2
3.0.1
3.0.0
2.4.3
2.4.2
2.4.1
2.4.0
2.3.1
2.3.0
2.2.0
2.1.0
2.0.0
1.2.0
1.1.0
1.0.0
1.0.0-0
0.1.9
0.1.8
0.1.7
0.1.6
0.1.5
0.1.4
0.1.3
0.1.2
0.1.1
0.1.0
entity-component-system
github.com/ddmills/geotic
ddmills/geotic
geotic
/
src
/
util
/
string-util.js
16 lines
(10 loc)
•
276 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import
camelcaseSlow
from
'camelcase'
;
const
camelCache = {};
export
const
camelString
= (
value
) => {
const
result = camelCache[value];
if
(!result) { camelCache[value] =
camelcaseSlow
(value);
return
camelCache[value]; }
return
result; };