tj
2025-06-05 bba272999cc546f65781bf3d20245a3f819af67f
1
2
3
4
5
6
7
8
const came = str => `${str}`.replace(/-\D/g, match => match.charAt(1).toUpperCase())
 
const hyphenate = str => `${str}`.replace(/[A-Z]/g, match => `-${match.toLowerCase()}`)
 
module.exports = {
  came,
  hyphenate,
}