Function useCamelize

  • 短杆拼接转驼峰

    Parameters

    • str: string

      字符

    • pascal: boolean = false

    Returns string

    Example

    useCamelize('name') // name
    useCamelize('user-name') // userName
    useCamelize('-user-name') // -user-name
    useCamelize('user-name', true) // UserName