The function to attempt.
Returns the func result or error object.
Binds methods of an object to the object itself, overwriting the existing method. Method names may be specified as individual arguments or as arrays of method names. If no method names are provided all enumerable function properties, own and inherited, of object are bound.
Note: This method does not set the "length" property of bound functions.
The object to bind and assign the bound methods to.
The object method names to bind, specified as individual method names or arrays of method names.
Returns object.
Creates a function that iterates over pairs
and invokes the corresponding
function of the first predicate to return truthy. The predicate-function
pairs are invoked with the this
binding and arguments of the created
function.
The predicate-function pairs.
Returns the new composite function.
Creates a function that invokes the predicate properties of source
with the corresponding
property values of a given object, returning true if all predicates return truthy, else false.
Creates a function that returns value.
The value to return from the new function.
Returns the new function.
Checks value
to determine whether a default value should be returned in
its place. The defaultValue
is returned if value
is NaN
, null
,
or undefined
.
The value to check.
The default value.
Returns the resolved value.
Creates a function that returns the result of invoking the provided functions with the this binding of the created function, where each successive invocation is supplied the return value of the previous.
Returns the new function.
This method is like _.flow except that it creates a function that invokes the provided functions from right to left.
Returns the new function.
This method returns the first argument provided to it.
Any value.
Returns value.
Creates a function that invokes func
with the arguments of the created
function. If func
is a property name the created callback returns the
property value for a given element. If func
is an object the created
callback returns true
for elements that contain the equivalent object properties, otherwise it returns false
.
Returns the callback.
Creates a function that performs a deep comparison between a given object and source, returning true if the given object has equivalent property values, else false.
Note: This method supports comparing arrays, booleans, Date objects, numbers, Object objects, regexes, and strings. Objects are compared by their own, not inherited, enumerable properties. For comparing a single own or inherited property value see _.matchesProperty.
The object of property values to match.
Returns the new function.
Creates a function that compares the property value of path on a given object to value.
Note: This method supports comparing arrays, booleans, Date objects, numbers, Object objects, regexes, and strings. Objects are compared by their own, not inherited, enumerable properties.
The path of the property to get.
The value to match.
Returns the new function.
Creates a function that invokes the method at path on a given object. Any additional arguments are provided to the invoked method.
The path of the method to invoke.
The arguments to invoke the method with.
Returns the new function.
The opposite of _.method; this method creates a function that invokes the method at a given path on object. Any additional arguments are provided to the invoked method.
The object to query.
The arguments to invoke the method with.
Returns the new function.
Adds all own enumerable function properties of a source object to the destination object. If object is a function then methods are added to its prototype as well.
Note: Use _.runInContext to create a pristine lodash function to avoid conflicts caused by modifying the original.
The destination object.
The object of functions to add.
The options object.
Returns object.
Reverts the _ variable to its previous value and returns a reference to the lodash function.
Returns the lodash function.
A no-operation function that returns undefined regardless of the arguments it receives.
undefined
Creates a function that returns its nth argument.
The index of the argument to return.
Returns the new function.
Creates a function that invokes iteratees with the arguments provided to the created function and returns their results.
The iteratees to invoke.
Returns the new function.
Creates a function that checks if all of the predicates return truthy when invoked with the arguments provided to the created function.
The predicates to check.
Returns the new function.
Creates a function that checks if any of the predicates return truthy when invoked with the arguments provided to the created function.
The predicates to check.
Returns the new function.
Creates a function that returns the property value at path on a given object.
The path of the property to get.
Returns the new function.
The opposite of _.property; this method creates a function that returns the property value at a given path on object.
The object to query.
Returns the new function.
Creates an array of numbers (positive and/or negative) progressing from start up to, but not including, end. If end is not specified it’s set to start with start then set to 0. If end is less than start a zero-length range is created unless a negative step is specified.
The start of the range.
The end of the range.
The value to increment or decrement by.
Returns a new range array.
Creates an array of numbers (positive and/or negative) progressing from start up to, but not including, end. If end is not specified it’s set to start with start then set to 0. If end is less than start a zero-length range is created unless a negative step is specified.
Not used in this overload.
Enables use as an iteratee for methods like _.map. You should not pass this parameter directly in your code.
Returns a new range array.
This method is like _.range
except that it populates values in
descending order.
The start of the range.
The end of the range.
The value to increment or decrement by.
Returns the new array of numbers.
This method is like _.range except that it populates values in descending order.
Not used in this overload.
Enables use as an iteratee for methods like _.map. You should not pass this parameter directly in your code.
Returns a new range array.
Create a new pristine lodash function using the given context object.
The context object.
Returns a new lodash function.
This method returns a new empty array.
Returns the new empty array.
This method returns false
.
Returns false
.
This method returns a new empty object.
Returns the new empty object.
This method returns an empty string.
Returns the empty string.
This method returns true
.
Returns true
.
Invokes the iteratee function n times, returning an array of the results of each invocation. The iteratee is invoked with one argument; (index).
The number of times to invoke iteratee.
The function invoked per iteration.
Returns the array of results.
Converts value
to a property path array.
The value to convert.
Returns the new property path array.
Generates a unique ID. If prefix is provided the ID is appended to it.
The value to prefix the ID with.
Returns the unique ID.
Generated using TypeDoc
Attempts to invoke func, returning either the result or the caught error object. Any additional arguments are provided to func when it’s invoked.