A convenient version of the most common _.map case: pull one property from every item and return those values as a list (official Underscore docs). Stable Collection helper — not deprecated.
Pass the required arguments shown below. Underscore collection helpers usually return a new value — check whether the source is mutated.
Syntax
Call _.pluck. Start with this line.
Underscore
_.pluck(list, propertyName)
Call
What it does
_.pluck(list, propertyName)
Primary signature.
_.pluck(...)
Call with the arguments your case needs.
Load Underscore with import _ from "underscore" (or the UMD CDN build) so these helpers are available as _.
Library declarations
Underscore
_.pluck(list, propertyName)
Parameters
Parameter
Description
list
Required. Array, array-like, or plain object
propertyName
Required. String name of the field to read
Return Value
Return Value
Description
*
New array of extracted values
Underscore.js Examples
Example 1 — Pluck Names
Extract one string field from every object — the classic docs example.
_.pluck ships with Underscore.js (1.x). It runs anywhere Underscore runs — modern browsers (CDN or bundle) and Node.js / Bun / Deno with npm install underscore.
✓ Stable · Underscore 1.x
_.pluck()
Available in [email protected] (UMD / ESM). Works in evergreen browsers and current Node LTS when Underscore is loaded.
100%With Underscore 1.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
_.pluckUnderscore 1.x+
Bottom line: Safe for production once Underscore is on the page or in your bundle. Not a native browser API — load Underscore first. Prefer a pinned CDN version (e.g. [email protected]). Native alternative: list.map(item => item.prop) or Underscore’s own _.map(list, _.property(prop)).
Frequently Asked Questions
_.pluck(list, propertyName) reads propertyName from every item and returns those values as a new array — the most common use of map, in one short call.
That slot becomes undefined. _.pluck does not skip items — you always get one entry per element, in order.
_.pluck only extracts one field. _.map runs any transform. Under the hood, _.pluck(list, name) is like _.map(list, _.property(name)).
Yes. It reads the property from each value and returns a flat array. Object keys are not kept in the result.
No. It returns a new array of extracted values; the source is unchanged.
Use _.invoke when you need to call a method on each item. Use _.pluck when you only need to read a property.