Returns true if any of the values in the list pass the predicate truth test (official Underscore docs). Stable Collection helper — not deprecated. Alias: _.any.
Pass the required arguments shown below. Underscore collection helpers usually return a new value — check whether the source is mutated.
Syntax
Call _.some. Start with this line.
Underscore
_.some(list, [predicate], [context])
Call
What it does
_.some(list, [predicate], [context])
Primary signature.
_.some(...)
Call with the arguments your case needs.
Load Underscore with import _ from "underscore" (or the UMD CDN build) so these helpers are available as _.
_.some / _.any ship with Underscore.js (1.x). They run anywhere Underscore runs — modern browsers (CDN or bundle) and Node.js / Bun / Deno with npm install underscore.
✓ Stable · Underscore 1.x
_.some()
Available in [email protected] (UMD / ESM). Alias _.any. 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
_.someUnderscore 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]).
Frequently Asked Questions
_.some(list, [predicate], [context]) returns true if any value in the list passes the predicate. Official example: _.some([null, 0, 'yes', false]) → true (identity: at least one truthy value).
_.any is an alias of _.some — same function. Use whichever name your team prefers.
Yes. It short-circuits: as soon as one value passes, it stops and returns true.
_.some([]) returns false — there is no value that can pass the test.
_.some is true when at least one value passes (OR). _.every is true only when all values pass (AND).
Yes. With no predicate, Underscore uses identity — _.some checks whether any value is truthy.