Function camelCase

  • It will convert the given string to camel case.

    Parameters

    • string: string

    Returns string

    Since

    1.0.0

    Example

    camelCase("some_database_field_name");
    // => "someDatabaseFieldName"

    Example

    camelCase("Some label that needs to be camelized");
    // => "someLabelThatNeedsToBeCamelized"

    Example

    camelCase("some-javaScript-property");
    // => "someJavaScriptProperty"

    Example

    camelCase("some-mixed_string with spaces_underscores-and-hyphens");
    // => "someMixedStringWithSpacesUnderscoresAndHyphens"