_.camelCase is a Lodash String helper (since 3.0.0). It needs no special browser APIs beyond loading Lodash.
✓ Stable · Lodash 3.0.0+
_.camelCase()
Available in [email protected] full builds and the lodash/camelCase modular import. Works in evergreen browsers and Node / Bun / Deno when Lodash is installed.
100%With Lodash 3.0.0+
Google ChromeSupported · Desktop & Mobile
Full support
Mozilla FirefoxSupported · Desktop & Mobile
Full support
Apple SafariSupported · macOS & iOS
Full support
Microsoft EdgeSupported · Chromium
Full support
Internet ExplorerNo native support · Use a polyfill
Polyfill
OperaSupported · Modern versions
Full support
Samsung InternetSupported · Android
Full support
BunSupported · JavaScript runtime
Supported
DenoSupported · JavaScript runtime
Supported
Node.jsSupported · Server runtime
Supported
Android WebViewSupported · Modern WebView
Full support
_.camelCaseLodash 3.0.0+
Bottom line: Safe for production once Lodash is on the page or in your bundle. Prefer import camelCase from "lodash/camelCase" for smaller builds.
Frequently Asked Questions
_.camelCase([string='']) converts a string to camel case. Official docs: _.camelCase('Foo Bar') → 'fooBar'; _.camelCase('--foo-bar--') → 'fooBar'; _.camelCase('__FOO_BAR__') → 'fooBar'.
No. JavaScript strings are immutable. _.camelCase always returns a new string.
Lodash uses its word-splitting rules (spaces, hyphens, underscores, and case boundaries). The same family of rules powers kebabCase, snakeCase, and startCase.
Same word split; different join. camelCase → fooBar; kebabCase → foo-bar; snakeCase → foo_bar.
Lodash still normalizes via its word rules. Simple camelCase like 'fooBar' typically stays 'fooBar'.
Use import camelCase from "lodash/camelCase" or require("lodash/camelCase") for tree-shaking.