UNPKG

overscroll

Version:
7 lines (4 loc) 148 B
const hyphenateRE = /([a-z\d])([A-Z])/g; export default function hyphenate( str ) { return str.replace( hyphenateRE, '$1-$2' ).toLowerCase(); }