_.split is a Lodash String helper since 3.1.0. It runs anywhere Lodash runs — modern browsers (CDN or bundle) and Node.js / Bun / Deno with npm install lodash.
✓ Stable · Lodash 3.1.0+
_.split()
Available in [email protected] full builds and the lodash/split modular import. Works in evergreen browsers and current Node LTS when Lodash is installed.
100%With Lodash 3.1+
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
_.splitLodash 3.1.0+
Bottom line: Safe for production once Lodash is loaded. Prefer import split from "lodash/split" for smaller bundles. Use it for null-safe splits with an optional limit.
Frequently Asked Questions
_.split([string=''], separator, [limit]) splits string by separator into an array of substrings. Official: _.split('a-b-c', '-', 2) → ['a','b'].
Behavior is very similar. Lodash coerces null/undefined to '' first, so _.split(null, '-') returns [""] instead of throwing.
It caps how many segments are returned. With limit 2 on 'a-b-c', you get ['a','b'] — the rest is not included as a leftover chunk in Lodash’s documented example.