Latest updates from IceHrmPro
This commit is contained in:
9
web/node_modules/string-convert/hyphen2camel.js
generated
vendored
Normal file
9
web/node_modules/string-convert/hyphen2camel.js
generated
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
var hyphen2camel = function (str) {
|
||||
return str
|
||||
.toLowerCase()
|
||||
.replace(/-[a-z]/g, function (match) {
|
||||
return match.slice(1).toUpperCase() ;
|
||||
});
|
||||
};
|
||||
|
||||
module.exports = hyphen2camel;
|
||||
Reference in New Issue
Block a user