mirror of
https://github.com/henrywhitaker3/Speedtest-Tracker.git
synced 2025-12-24 22:39:26 +01:00
4 lines
124 B
JavaScript
Vendored
4 lines
124 B
JavaScript
Vendored
var rUpper = /([A-Z])/g;
|
|
export default function hyphenate(string) {
|
|
return string.replace(rUpper, '-$1').toLowerCase();
|
|
} |