Lodash _.over() Method

Beginner
5 min read
Updated: Nov 2026
4 examples
Util

Definition

Creates a function that invokes each iteratee with the arguments it receives and returns an array of those results. Part of Lodash Util since 4.0.0 (stable — not deprecated).

Pass the arguments shown below. Prefer modular imports when you only need this helper.

Syntax

Call _.over. Start with this line.

Lodash
_.over([iteratees=[_.identity]])
CallWhat it does
_.over([iteratees=[_.identity]])Primary signature.
_.over(...)Call the util helper.

Prefer import over from "lodash/over" when you want a smaller bundle.

Library declarations
Lodash
_.over([iteratees=[_.identity]])

Parameters

ParameterDescription
iterateesOptional. Functions (array and/or rest args) to invoke

Return Value

Return ValueDescription
*A function that returns [result1, result2, …]

Lodash Examples

Example 1 — Official: Max and Min

Run Math.max and Math.min on the same numbers.

Lodash
var func = _.over([Math.max, Math.min]);

func(1, 2, 3, 4);
// → [4, 1]
Try It Yourself

How It Works

  1. Build. _.over wraps both Math helpers.
  2. Call. Pass 1, 2, 3, 4 once.
  3. Max. First iteratee → 4.
  4. Min. Second iteratee → 1; result [4, 1].

Example 2 — Rest Arguments Form

Same result without wrapping iteratees in an array.

Lodash
var func = _.over(Math.max, Math.min);

func(1, 2, 3, 4);
// → [4, 1]
Try It Yourself

How It Works

  1. Rest args. Math.max and Math.min are iteratees.
  2. Same as array. Equivalent to [Math.max, Math.min].
  3. Result. Still [4, 1].
  4. Pick a style. Use whichever reads clearer.

Example 3 — With _.nthArg

Pick several argument slots in one call.

Lodash
var func = _.over([_.nthArg(0), _.nthArg(1)]);

func('a', 'b', 'c');
// → ['a', 'b']
Try It Yourself

How It Works

  1. Pickers. nthArg(0) and nthArg(1) are iteratees.
  2. Shared args. Both see 'a', 'b', 'c'.
  3. Collect. Returns ['a', 'b'].
  4. Use. Handy when an API passes many args and you need a few.

Example 4 — over vs overEvery

Collect results vs ask “did every predicate pass?”

Lodash
_.over([Boolean, isFinite])(1);
// → [true, true]

_.overEvery([Boolean, isFinite])(1);
// → true

_.overEvery([Boolean, isFinite])(0);
// → false  (Boolean(0) is falsy)
Try It Yourself

How It Works

  1. over. Returns each predicate’s boolean in an array.
  2. overEvery. Collapses to a single true/false.
  3. Zero. Boolean(0) is falsy → overEvery fails.
  4. Choose. Need values → over; need a gate → overEvery.

Browser & Runtime Support

_.over is a Lodash Util helper since 4.0.0. It runs anywhere Lodash runs — modern browsers (CDN or bundle) and Node.js / Bun / Deno with npm install lodash.

✓ Stable · Lodash 4.0.0+

_.over()

Available in [email protected] full builds and the lodash/over modular import. Works in evergreen browsers and current Node LTS when Lodash is installed.

100% With Lodash 4.0+
Google Chrome Supported · Desktop & Mobile
Full support
Mozilla Firefox Supported · Desktop & Mobile
Full support
Apple Safari Supported · macOS & iOS
Full support
Microsoft Edge Supported · Chromium
Full support
Internet Explorer No native support · Use a polyfill
Polyfill
Opera Supported · Modern versions
Full support
Samsung Internet Supported · Android
Full support
Bun Supported · JavaScript runtime
Supported
Deno Supported · JavaScript runtime
Supported
Node.js Supported · Server runtime
Supported
Android WebView Supported · Modern WebView
Full support
_.over Lodash 4.0.0+

Bottom line: Safe for production once Lodash is loaded. Prefer import over from "lodash/over" for smaller bundles.

Frequently Asked Questions

_.over(iteratees) returns a new function. When you call it, Lodash runs every iteratee with the same arguments and returns an array of each result — in order.
No. _.over runs all iteratees on the same inputs and returns [r1, r2, …]. _.flow pipes one function’s output into the next. Use over for parallel views; use flow for a pipeline.
Pass an array (_.over([fn1, fn2])) or rest arguments (_.over(fn1, fn2)). Iteratee shorthands (property strings, matches objects) also work.
_.over collects every result in an array. _.overEvery returns true only if all predicates are truthy. _.overSome returns true if any predicate is truthy.
_.over([Math.max, Math.min])(1, 2, 3, 4) → [4, 1] — max then min of the same numbers.
No. It is a stable Lodash Util method since 4.0.0.

Next: _.overEvery()

Combine predicates that must all return truthy.

_.overEvery() tutorial →

About the author

Mari Selvan M P
Mari Selvan M P 🔗

Developer, cloud engineer, and technical writer

  • Experience 12 years building web and cloud systems
  • Focus Full Stack Development, AWS, and Developer Education

I write practical tutorials so students and working developers can learn by doing—from databases and APIs to deployment on AWS.

10 people found this page helpful