mirror of
https://github.com/Rushilwiz/spaceout.git
synced 2025-04-21 20:09:50 -04: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();
|
|
} |