Footgun. A second arg to _.min is ignored in Lodash 4.x.
Pick. Numbers → min. Objects → minBy.
Compatibility
Browser & Runtime Support
_.min is a Lodash Math helper (since 0.1.0, current docs cover 4.x). It runs anywhere Lodash runs — modern browsers (CDN or bundle) and Node.js / Bun / Deno with npm install lodash. Closest native cousin is Math.min(...array), but Lodash takes an array, returns undefined for empty input, and skips NaN candidates.
✓ Stable · Lodash 4.x
_.min()
Available in [email protected] full builds and the lodash/min 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
_.minLodash 4.x+
Bottom line: Safe for production once Lodash is loaded. Prefer import min from "lodash/min" for smaller builds. Ideal for finding the lowest score, price, or timestamp in a list.
Frequently Asked Questions
_.min(array) returns the smallest value in the array. Empty or falsey input returns undefined.
Math.min(...arr) needs spread and returns Infinity for no args. _.min takes an array and returns undefined when empty.
No. A second argument is ignored. For objects use _.minBy(array, iteratee).
They are skipped while scanning. If every value is skipped, the result is undefined.
_.min([3, 0, 5]) || -1 becomes -1 because 0 is falsy. Use ?? so only undefined triggers the default.
Use import min from "lodash/min" or require("lodash/min") for tree-shaking. Full build: import _ from "lodash" then _.min.