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