Gets all but the first element of array. Part of Lodash Array — stable in 4.x. Renamed: in Lodash 4.0.0 this replaced the older name _.rest; use _.tail in modern code.
Pass the required arguments shown below. Lodash Array helpers usually return a new value — check whether the source array is mutated.
Syntax
Call _.tail on an array. Start with this line.
Lodash
_.tail(array)
Call
What it does
_.tail(array)
Primary signature.
_.tail(array)
Call with an array argument.
Prefer import tail from "lodash/tail" when you want a smaller bundle.
Tail._.tail returns the slice after that → [20, 30].
No mutation.arr stays [10, 20, 30].
Pattern. Classic “car / cdr” split for list processing.
Compatibility
Browser & Runtime Support
_.tail is a Lodash 4.x Array helper (renamed from _.rest 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.x
_.tail()
Available in [email protected] full builds and the lodash/tail modular import. Works in evergreen browsers and current Node LTS when Lodash is installed.
100%With Lodash 4.x
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
_.tailLodash 4.x+
Bottom line: Safe for production once Lodash is on the page or in your bundle. Prefer import tail from "lodash/tail" for smaller builds. Not a native browser API — load Lodash first. Pre-4 code may still say _.rest.
Frequently Asked Questions
_.tail(array) returns a new array with every element except the first. For [1, 2, 3] the result is [2, 3].
No. It returns a new array (slice from index 1). The source array is unchanged.
Both return []. There is nothing after the first element — or no first element at all.
Yes for ordinary arrays: _.tail(arr), _.drop(arr), and arr.slice(1) all skip the first element and return a new array.
Yes. In Lodash 4.0.0, _.rest was renamed to _.tail. Prefer _.tail in modern Lodash 4.x code.
Use import tail from "lodash/tail" or require("lodash/tail") so bundlers can tree-shake. Full build: import _ from "lodash" then _.tail.