Function textCamelCase

  • 字符串转驼峰

    Parameters

    • str: string

      字符串

    Returns string

    textCamelCase('foo-bar'); /// 'fooBar'
    textCamelCase('foo_bar'); /// 'fooBar'
    textCamelCase('foo bar'); /// 'fooBar'
    textCamelCase('foo.bar'); /// 'fooBar'