Initial Commit
This commit is contained in:
12
node_modules/jquery/src/core/camelCase.js
generated
vendored
Normal file
12
node_modules/jquery/src/core/camelCase.js
generated
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
// Matches dashed string for camelizing
|
||||
var rdashAlpha = /-([a-z])/g;
|
||||
|
||||
// Used by camelCase as callback to replace()
|
||||
function fcamelCase( _all, letter ) {
|
||||
return letter.toUpperCase();
|
||||
}
|
||||
|
||||
// Convert dashed to camelCase
|
||||
export function camelCase( string ) {
|
||||
return string.replace( rdashAlpha, fcamelCase );
|
||||
}
|
||||
Reference in New Issue
Block a user