Checks whether a predicate returns truthy for all elements of a collection. Stops at the first falsey result. Empty collections return true (vacuous truth). Part of Lodash 4.x Collection (since 0.1.0).
Pass the required arguments shown below. Lodash Collection helpers usually return a new value — check whether the source is mutated.
Syntax
Call _.every on a collection. Start with this line.
Lodash
_.every(collection, [predicate=_.identity])
Call
What it does
_.every(collection, [predicate=_.identity])
Primary signature.
_.every(collection)
Call with a collection argument.
Prefer import every from "lodash/every" when you want a smaller bundle.
Guard. Pair with a length/size check if empty should mean “invalid”.
Compatibility
Browser & Runtime Support
_.every is a Lodash 4.x Collection helper (since 0.1.0). It runs anywhere Lodash runs — modern browsers (CDN or bundle) and Node.js / Bun / Deno with npm install lodash. Native Array.prototype.every covers arrays only; Lodash also walks plain objects and offers iteratee shorthands.
✓ Stable · Lodash 4.x
_.every()
Available in [email protected] full builds and the lodash/every 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
_.everyLodash 4.x+
Bottom line: Safe for production once Lodash is loaded. Prefer import every from "lodash/every" for smaller builds. Ideal for form guards, “all ready” checks, and permission validation.
Frequently Asked Questions
_.every(collection, predicate) returns true if predicate is truthy for every element. It stops early on the first falsey result.
No. It only reads values while testing. The source array or object is unchanged.
_.every returns true for empty collections (vacuous truth) — same idea as Array.prototype.every.
every requires all matches. some returns true on the first match. Use some for “at least one”.
Three: (value, index|key, collection). Shorthands like property names, match objects, and [path, value] pairs also work.
Use import every from "lodash/every" or require("lodash/every") for tree-shaking. Full build: import _ from "lodash" then _.every.