UNPKG
vuikit
Version:
latest (0.8.10)
next (0.9.0-beta3)
0.9.0-beta3
0.9.0-beta2
0.9.0-beta
0.8.10
0.8.9
0.8.8
0.8.7
0.8.6
0.8.5
0.8.4
0.8.3
0.8.2
0.8.1
0.8.0
0.7.0
0.6.3
0.6.2
0.6.1
0.6.0
0.5.0
0.4.1
0.4.0
0.3.0
0.2.0
0.1.0
A Vuejs component library based on UIkit
vuikit.js.org
vuikit
/
core
/
util
/
to-camel-case.js
17 lines
(14 loc)
•
250 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/** * Vuikit 0.7.0 * (c) 2018 Miljan Aleksic *
@license
MIT
*/
/** * Formats the string to camelize format */
export
default
function
(
str
) {
return
str.
replace
(
/-(\w)/g
, toUpper) }
function
toUpper
(
_, c
) {
return
c ? c.
toUpperCase
() :
''
}