Files
cartlog-admin/node_modules/string-convert/camel2hyphen.js
2026-01-01 15:25:19 +05:30

9 lines
216 B
JavaScript

var camel2hyphen = function (str) {
return str
.replace(/[A-Z]/g, function (match) {
return '-' + match.toLowerCase();
})
.toLowerCase();
};
module.exports = camel2hyphen;