Skip to main content

camelCase

Formats the given string in camel case fashion

API

function camelCase(str: string): string;

Usage

import { camelCase } from '@feedzai/js-utilities';

camelCase('hello world')
//-> 'helloWorld'

camelCase('va va-VOOM')
//-> 'vaVaVoom'

camelCase('helloWorld')
//-> 'helloWorld'