Converts all elements in an array into a string, inserting a separator between each pair. Default separator is a comma. Part of Lodash 4.x Array (since 4.0.0).
Pass the required arguments shown below. Lodash Array helpers usually return a new value — check whether the source array is mutated.
Syntax
Call _.join on an array. Start with this line.
Lodash
_.join(array, [separator=','])
Call
What it does
_.join(array, [separator=','])
Primary signature.
_.join(array)
Call with an array argument.
Prefer import join from "lodash/join" when you want a smaller bundle.
One element. No separator is inserted — just that value as text.
Safe. Useful when building paths or labels from optional lists.
Numbers work. Non-strings are converted with String(…).
Compatibility
Browser & Runtime Support
_.join is a Lodash 4.x Array helper (added in 4.0.0). It runs anywhere Lodash runs — modern browsers (via CDN or bundle) and Node.js / Bun / Deno with npm install lodash.
✓ Stable · Lodash 4.0.0+
_.join()
Available in [email protected] full builds and the lodash/join modular import. Works in evergreen browsers and current Node LTS when Lodash is installed.
100%With Lodash 4.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
_.joinLodash 4.0.0+
Bottom line: Safe for production once Lodash 4.0.0+ is on the page or in your bundle. Prefer import join from "lodash/join" for smaller builds. Native Array.prototype.join is an equivalent for plain arrays.
Frequently Asked Questions
_.join(array, [separator=',']) converts all elements in array into a single string, inserting separator between each pair. It returns a string and does not mutate the array.
A comma. Omitting the second argument (or passing undefined) uses ',' — same default idea as Array.prototype.join.
They become empty string segments. Adjacent empties produce consecutive separators (for example 'a,,c').
For ordinary arrays the result matches Array.prototype.join with the same separator. Lodash is useful for a consistent API and modular imports alongside other helpers.
No. It only reads elements and returns a new string.
Use import join from "lodash/join" or require("lodash/join") for tree-shaking friendly bundles. Full build: import _ from "lodash" then _.join.