Skip to content

Latest commit

 

History

History
62 lines (32 loc) · 843 Bytes

File metadata and controls

62 lines (32 loc) · 843 Bytes

Home > @asl-19/js-utils > underscoreCaseToCamelCase

underscoreCaseToCamelCase() function

Given an underscore-cased string, returns a camel-cased string.

Signature:

underscoreCaseToCamelCase: (underscoreCasedString: string) => string

Parameters

Parameter

Type

Description

underscoreCasedString

string

Returns:

string

Example

- underscoreCaseToCamelCase("foo_bar")
// "fooBar"
- underscoreCaseToCamelCase("foo")
// "foo"