Returns the minimum value in a list. An optional iteratee ranks each value; empty lists return Infinity (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 _.min. Start with this line.
Underscore
_.min(list, [iteratee], [context])
Call
What it does
_.min(list, [iteratee], [context])
Primary signature.
_.min(...)
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
_.min(list, [iteratee], [context])
Parameters
Parameter
Description
list
Required. Collection to scan
iteratee
Optional. Function or property name for ranking
context
Optional. this for the iteratee
Return Value
Return Value
Description
*
Winning element, or Infinity if empty
Underscore.js Examples
Example 1 — Official: Smallest Number
Find the minimum in a list of numbers — same call as the docs.
Seed value. Underscore uses Infinity as the starting minimum.
Guard. Check _.isEmpty before trusting the result.
Pair with max. Empty _.max returns -Infinity.
Compatibility
Browser & Runtime Support
_.min 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
_.min()
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
_.minUnderscore 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]). For plain numbers only, Math.min.apply(null, nums) or Math.min(...nums) is a native alternative.
Frequently Asked Questions
_.min(list, [iteratee], [context]) returns the smallest value in the list. With an iteratee it ranks each item by a computed number and returns the original winning element.
Infinity. The docs recommend an isEmpty guard when that matters.
Yes. Pass a property name string or a function as the iteratee, e.g. _.min(people, 'age') returns the youngest person object.
Math.min takes separate numbers and returns a number. _.min takes a collection, supports an iteratee, and returns the original winning element.
Yes. For a plain object it compares the object's values and returns the smallest one.
No. It only reads the collection and returns one value.