Module

x/lodash_es/src/function.js

lodash for deno use
Latest
import * as mod from "https://dotland.deno.dev/x/lodash_es@v0.0.2/src/function.js";

Variables

Creates a function that invokes func with the this binding of thisArg and partials prepended to the arguments it receives.

Creates a function that invokes the method at object[key] with partials prepended to the arguments it receives.

Defers invoking the func until the current call stack has cleared. Any additional arguments are provided to func when it's invoked.

Invokes func after wait milliseconds. Any additional arguments are provided to func when it's invoked.

Creates a function that invokes func with its arguments transformed.

Creates a function that invokes func with partials prepended to the arguments it receives. This method is like _.bind except it does not alter the this binding.

This method is like _.partial except that partially applied arguments are appended to the arguments it receives.

Creates a function that invokes func with arguments arranged according to the specified indexes where the argument value at the first index is provided as the first argument, the argument value at the second index is provided as the second argument, and so on.

Functions

The opposite of _.before; this method creates a function that invokes func once it's called n or more times.

Creates a function that invokes func, with up to n arguments, ignoring any additional arguments.

Creates a function that invokes func, with the this binding and arguments of the created function, while it's called less than n times. Subsequent calls to the created function return the result of the last func invocation.

Creates a function that accepts arguments of func and either invokes func returning its result, if at least arity number of arguments have been provided, or returns a function that accepts the remaining func arguments, and so on. The arity of func may be specified if func.length is not sufficient.

This method is like _.curry except that arguments are applied to func in the manner of _.partialRight instead of _.partial.

Creates a debounced function that delays invoking func until after wait milliseconds have elapsed since the last time the debounced function was invoked. The debounced function comes with a cancel method to cancel delayed func invocations and a flush method to immediately invoke them. Provide options to indicate whether func should be invoked on the leading and/or trailing edge of the wait timeout. The func is invoked with the last arguments provided to the debounced function. Subsequent calls to the debounced function return the result of the last func invocation.

Creates a function that invokes func with arguments reversed.

Creates a function that memoizes the result of func. If resolver is provided, it determines the cache key for storing the result based on the arguments provided to the memoized function. By default, the first argument provided to the memoized function is used as the map cache key. The func is invoked with the this binding of the memoized function.

Creates a function that negates the result of the predicate func. The func predicate is invoked with the this binding and arguments of the created function.

Creates a function that is restricted to invoking func once. Repeat calls to the function return the value of the first invocation. The func is invoked with the this binding and arguments of the created function.

Creates a function that invokes func with the this binding of the created function and arguments from start and beyond provided as an array.

Creates a function that invokes func with the this binding of the create function and an array of arguments much like Function#apply.

Creates a throttled function that only invokes func at most once per every wait milliseconds. The throttled function comes with a cancel method to cancel delayed func invocations and a flush method to immediately invoke them. Provide options to indicate whether func should be invoked on the leading and/or trailing edge of the wait timeout. The func is invoked with the last arguments provided to the throttled function. Subsequent calls to the throttled function return the result of the last func invocation.

Creates a function that accepts up to one argument, ignoring any additional arguments.

Creates a function that provides value to wrapper as its first argument. Any additional arguments provided to the function are appended to those provided to the wrapper. The wrapper is invoked with the this binding of the created function.