@bnidev/js-utils
    Preparing search index...

    Function camelCase

    • Converts a string to camelCase.

      Parameters

      • str: string

        The string to convert.

      Returns string

      The string in camelCase format.

      // ES Module
      import { camelCase } from '@bnidev/js-utils'

      // CommonJS
      const { camelCase } = require('@bnidev/js-utils')
      camelCase('hello world') // 'helloWorld'
      camelCase('hello-world') // 'helloWorld'
      camelCase('hello_world') // 'helloWorld'