Skip to content

camel

Convert a string to camel case

357 bytes

Usage

Given a string returns it in camel case format.

import * as
import _
_
from 'radashi'
const
const camelText: string
camelText
=
import _
_
.
function camel(str: string): string
export camel

Formats the given string in camel case fashion.

@seehttps://radashi.js.org/reference/string/camel

@example

camel('hello world') // => 'helloWorld'
camel('one two-THREE') // => 'oneTwoThree'
camel('helloWorld') // => 'helloWorld'

@version12.1.0

camel
('green fish blue fish') // => greenFishBlueFish