mirror of
https://github.com/idanoo/GoScrobble.git
synced 2024-11-25 09:55:15 +00: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();
|
||
|
}
|