mirror of
https://github.com/bluewave-labs/Checkmate.git
synced 2026-05-13 04:58:51 -05:00
4 lines
124 B
JavaScript
4 lines
124 B
JavaScript
var rUpper = /([A-Z])/g;
|
|
export default function hyphenate(string) {
|
|
return string.replace(rUpper, '-$1').toLowerCase();
|
|
} |