Lodash _.drop() Method

Beginner
5 min read
Updated: Nov 2026
5 examples
Array

Definition

Creates a slice of array with n elements dropped from the beginning. Part of Lodash 4.x Array — stable and non-mutating.

Pass the required arguments shown below. Lodash Array helpers usually return a new value — check whether the source array is mutated.

Syntax

Call _.drop on an array. Start with this line.

Lodash
_.drop(array, [n=1])
CallWhat it does
_.drop(array, [n=1])Primary signature.
_.drop(array)Call with an array argument.

Prefer import drop from "lodash/drop" when you want a smaller bundle.

Library declarations
Lodash
_.drop(array, [n=1])

Parameters

ParameterDescription
arrayRequired. Source to query
nOptional. Count to drop from the start; default 1

Return Value

Return ValueDescription
*New array of remaining elements

Lodash Examples

Example 1 — Official: Default Drop One

Omit n and Lodash removes the first element.

Lodash
_.drop([1, 2, 3]);
// → [2, 3]
Try It Yourself

How It Works

  1. Source. Array [1, 2, 3]; indexes 0 … 2.
  2. Default. Missing n means drop 1 item.
  3. Skip head. Remove 1; keep 2 and 3.
  4. New array. Result is [2, 3]; the original is untouched.

Example 2 — Official: Drop a Specific Count

Pass n to skip several leading values in one call.

Lodash
_.drop([1, 2, 3], 2);
// → [3]
Try It Yourself

How It Works

  1. Ask for 2. Drop the first two slots.
  2. Removed. 1 and 2 leave the result.
  3. Kept. Only 3 remains → [3].
  4. Same as slice. Equivalent to [1, 2, 3].slice(2).

Example 3 — Official: n Larger Than Length

Dropping more items than exist yields an empty array.

Lodash
_.drop([1, 2, 3], 5);
// → []
Try It Yourself

How It Works

  1. Ask for 5. Source only has 3 items.
  2. Everything skipped. No index remains after the drop.
  3. Result. Empty array [].
  4. Safe. No throw — check result.length if you need a guard.

Example 4 — Official: Drop Zero

n = 0 keeps the whole sequence in a new array.

Lodash
_.drop([1, 2, 3], 0);
// → [1, 2, 3]
Try It Yourself

How It Works

  1. Count is 0. Nothing is removed from the start.
  2. Still a copy. You get a new array with the same values.
  3. Order preserved. [1, 2, 3] in the same order.
  4. Use. Handy when n comes from a variable that may be zero.

Example 5 — Empty Array

Dropping from an empty source stays empty.

Lodash
_.drop([], 2);
// → []
Try It Yourself

How It Works

  1. Empty source. No elements to keep or drop.
  2. Result. Lodash returns [].
  3. Safe. No throw — fine in pipelines that may receive empty lists.
  4. Guard. Check length before assuming leftover items exist.

Browser & Runtime Support

_.drop is a Lodash 4.x Array helper. It runs anywhere Lodash runs — modern browsers (via CDN or bundle) and Node.js / Bun / Deno with npm install lodash.

✓ Stable · Lodash 4.x

_.drop()

Available in [email protected] full builds and the lodash/drop modular import. Works in evergreen browsers and current Node LTS when Lodash is installed.

100% With Lodash 4.x
Google Chrome Supported · Desktop & Mobile
Full support
Mozilla Firefox Supported · Desktop & Mobile
Full support
Apple Safari Supported · macOS & iOS
Full support
Microsoft Edge Supported · Chromium
Full support
Internet Explorer No native support · Use a polyfill
Polyfill
Opera Supported · Modern versions
Full support
Samsung Internet Supported · Android
Full support
Bun Supported · JavaScript runtime
Supported
Deno Supported · JavaScript runtime
Supported
Node.js Supported · Server runtime
Supported
Android WebView Supported · Modern WebView
Full support
_.drop Lodash 4.x+

Bottom line: Safe for production once Lodash is on the page or in your bundle. Prefer import drop from "lodash/drop" for smaller builds. Not a native browser API — load Lodash first.

Frequently Asked Questions

_.drop(array, n) creates a new array with the first n elements removed from the start. The default for n is 1. The source array is not mutated.
No. Lodash returns a new array (a slice of the remaining elements). The input stays unchanged.
When n is omitted, Lodash drops one element — the same everyday “skip the head” case as _.tail on a normal array.
You get an empty array []. Nothing throws.
Nothing is dropped. You get a new array with every element (shallow copy, like slice from 0).
Use import drop from "lodash/drop" or require("lodash/drop") so bundlers can tree-shake. Full build: import _ from "lodash" then _.drop.

Next: _.dropRight()

Skip elements from the end instead of the start — the mirror of _.drop.

_.dropRight() tutorial →

About the author

Mari Selvan M P
Mari Selvan M P 🔗

Developer, cloud engineer, and technical writer

  • Experience 12 years building web and cloud systems
  • Focus Full Stack Development, AWS, and Developer Education

I write practical tutorials so students and working developers can learn by doing—from databases and APIs to deployment on AWS.

10 people found this page helpful