Lodash Function Methods

About This Index
This page is the Lodash Functions index for the tutorial track. Each row links to a full guide with syntax, examples, and FAQs.
Learn collections and arrays on /lodash/collection and /lodash/array. Use this page when you need a function helper such as _.bind(), _.debounce(), or _.throttle().
Start with _.bind(), then _.debounce(), _.throttle(), and _.once()—then browse curry and arity helpers.
How to Call a Function Method
Pass a function in; Lodash returns a new wrapper with the behavior you asked for:
import _ from "lodash";
function greet(greeting, punctuation) {
return greeting + " " + this.name + punctuation;
}
const sayHi = _.bind(greet, { name: "fred" }, "hi");
sayHi("!"); // "hi fred!"
const add = function (a, b) { return a + b; };
const add5 = _.partial(add, 5);
add5(10); // 15
const onScroll = _.throttle(function () { /* ... */ }, 100);
const onType = _.debounce(function () { /* ... */ }, 300);
const init = _.once(function () { console.log("ready"); }); Lodash Function Methods Table
All function method guides in this Lodash tutorial series (23 tutorials).
Getting Started
5 methodsBind this, partially apply arguments, and memoize results.
| Method | Description | Tutorial |
|---|---|---|
_.bind() | Create a function bound to this, with optional partial arguments and placeholders. | Try it |
_.bindKey() | Bind a method on object[key]; supports placeholders like bind. | Try it |
_.partial() | Partial application from the left, with optional placeholders. | Try it |
_.partialRight() | Partial application from the right. | Try it |
_.memoize() | Memoize func results; optional resolver customizes cache keys. | Try it |
Timing & Rate Limit
4 methodsDelay, defer, throttle, and debounce function calls.
| Method | Description | Tutorial |
|---|---|---|
_.delay() | Invoke func after wait milliseconds. | Try it |
_.defer() | Defer invoking func until the current call stack clears. | Try it |
_.throttle() | Ensure func is invoked at most once per wait window. | Try it |
_.debounce() | Delay invoking func until wait ms after the last call; supports cancel and flush. | Try it |
Call Control
3 methodsLimit how many times a function may run — once, after, before.
Curry & Arity
6 methodsCurry, cap arguments, and reshape how parameters are received.
| Method | Description | Tutorial |
|---|---|---|
_.curry() | Curry func so arguments can be supplied across multiple calls. | Try it |
_.curryRight() | Curry func with arguments provided from right to left. | Try it |
_.ary() | Wrap func to accept only n arguments; extras are dropped. | Try it |
_.unary() | Wrap func so it only accepts one argument. | Try it |
_.rest() | Transform func so trailing arguments are collected into an array. | Try it |
_.spread() | Spread an array argument across func parameters. | Try it |
Wrap & Transform
5 methodsWrap, negate, flip, rearrange, and preprocess arguments.
| Method | Description | Tutorial |
|---|---|---|
_.wrap() | Wrap value as the first argument to a wrapper function. | Try it |
_.negate() | Return a predicate that negates the result of the given predicate. | Try it |
_.flip() | Create a function that invokes func with arguments reversed. | Try it |
_.rearg() | Create a function that invokes func with arguments rearranged. | Try it |
_.overArgs() | Transform arguments before they reach func. | Try it |
Frequently Asked Questions
Start with _.bind()
Open the binding guide—syntax, examples, and FAQs.
12 people found this page helpful
