Module

x/lodash_es/mod.ts

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

Variables

Adds two numbers.

Assigns own enumerable string keyed properties of source objects to the destination object. Source objects are applied from left to right. Subsequent sources overwrite property assignments of previous sources.

This method is like _.assign except that it iterates over own and inherited source properties.

This method is like _.assignIn except that it accepts customizer which is invoked to produce the assigned values. If customizer returns undefined, assignment is handled by the method instead. The customizer is invoked with five arguments: (objValue, srcValue, key, object, source).

This method is like _.assign except that it accepts customizer which is invoked to produce the assigned values. If customizer returns undefined, assignment is handled by the method instead. The customizer is invoked with five arguments: (objValue, srcValue, key, object, source).

Creates an array of values corresponding to paths of object.

Attempts to invoke func, returning either the result or the caught error object. Any additional arguments are provided to func when it's invoked.

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

Binds methods of an object to the object itself, overwriting the existing method.

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

Converts string to camel case.

Computes number rounded up to precision.

Creates an object composed of keys generated from the results of running each element of collection thru iteratee. The corresponding value of each key is the number of times the key was returned by iteratee. The iteratee is invoked with one argument: (value).

Assigns own and inherited enumerable string keyed properties of source objects to the destination object for all destination properties that resolve to undefined. Source objects are applied from left to right. Once a property is set, additional values of the same property are ignored.

This method is like _.defaults except that it recursively assigns default properties.

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 an array of array values not included in the other given arrays using SameValueZero for equality comparisons. The order and references of result values are determined by the first array.

This method is like _.difference except that it accepts iteratee which is invoked for each element of array and values to generate the criterion by which they're compared. The order and references of result values are determined by the first array. The iteratee is invoked with one argument: (value).

This method is like _.difference except that it accepts comparator which is invoked to compare elements of array to values. The order and references of result values are determined by the first array. The comparator is invoked with two arguments: (arrVal, othVal).

Divide two numbers.

Creates an array of own enumerable string keyed-value pairs for object which can be consumed by _.fromPairs. If object is a map or set, its entries are returned.

Creates an array of own and inherited enumerable string keyed-value pairs for object which can be consumed by _.fromPairs. If object is a map or set, its entries are returned.

This method is like _.assign except that it iterates over own and inherited source properties.

This method is like _.assignIn except that it accepts customizer which is invoked to produce the assigned values. If customizer returns undefined, assignment is handled by the method instead. The customizer is invoked with five arguments: (objValue, srcValue, key, object, source).

Iterates over elements of collection, returning the first element predicate returns truthy for. The predicate is invoked with three arguments: (value, index|key, collection).

This method is like _.find except that it iterates over elements of collection from right to left.

Computes number rounded down to precision.

Creates a function that returns the result of invoking the given functions with the this binding of the created function, where each successive invocation is supplied the return value of the previous.

This method is like _.flow except that it creates a function that invokes the given functions from right to left.

Creates an object composed of keys generated from the results of running each element of collection thru iteratee. The order of grouped values is determined by the order they occur in collection. The corresponding value of each key is an array of elements responsible for generating the key. The iteratee is invoked with one argument: (value).

Checks if value is greater than other.

Checks if value is greater than or equal to other.

Creates an array of unique values that are included in all given arrays using SameValueZero for equality comparisons. The order and references of result values are determined by the first array.

This method is like _.intersection except that it accepts iteratee which is invoked for each element of each arrays to generate the criterion by which they're compared. The order and references of result values are determined by the first array. The iteratee is invoked with one argument: (value).

This method is like _.intersection except that it accepts comparator which is invoked to compare elements of arrays. The order and references of result values are determined by the first array. The comparator is invoked with two arguments: (arrVal, othVal).

Creates an object composed of the inverted keys and values of object. If object contains duplicate values, subsequent values overwrite property assignments of previous values.

This method is like _.invert except that the inverted object is generated from the results of running each element of object thru iteratee. The corresponding inverted value of each inverted key is an array of keys responsible for generating the inverted value. The iteratee is invoked with one argument: (value).

Invokes the method at path of object.

Invokes the method at path of each element in collection, returning an array of the results of each invoked method. Any additional arguments are provided to each invoked method. If path is a function, it's invoked for, and this bound to, each element in collection.

Checks if value is likely an arguments object.

Checks if value is classified as an Array object.

Checks if value is classified as an ArrayBuffer object.

Checks if value is a buffer.

Checks if value is classified as a Date object.

Checks if value is classified as a Map object.

Checks if value is classified as a RegExp object.

Checks if value is classified as a Set object.

Checks if value is classified as a typed array.

Converts string to kebab case.

Creates an object composed of keys generated from the results of running each element of collection thru iteratee. The corresponding value of each key is the last element responsible for generating the key. The iteratee is invoked with one argument: (value).

Converts string, as space separated words, to lower case.

Converts the first character of string to lower case.

Checks if value is less than other.

Checks if value is less than or equal to other.

This method is like _.assign except that it recursively merges own and inherited enumerable string keyed properties of source objects into the destination object. Source properties that resolve to undefined are skipped if a destination value exists. Array and plain object properties are merged recursively. Other objects and value types are overridden by assignment. Source objects are applied from left to right. Subsequent sources overwrite property assignments of previous sources.

This method is like _.merge except that it accepts customizer which is invoked to produce the merged values of the destination and source properties. If customizer returns undefined, merging is handled by the method instead. The customizer is invoked with six arguments: (objValue, srcValue, key, object, source, stack).

Creates a function that invokes the method at path of a given object. Any additional arguments are provided to the invoked method.

The opposite of _.method; this method creates a function that invokes the method at a given path of object. Any additional arguments are provided to the invoked method.

Multiply two numbers.

Gets the timestamp of the number of milliseconds that have elapsed since the Unix epoch (1 January 1970 00:00:00 UTC).

The opposite of _.pick; this method creates an object composed of the own and inherited enumerable property paths of object that are not omitted.

Creates a function that invokes iteratees with the arguments it receives and returns their results.

Creates a function that invokes func with its arguments transformed.

Creates a function that checks if all of the predicates return truthy when invoked with the arguments it receives.

Creates a function that checks if any of the predicates return truthy when invoked with the arguments it receives.

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 an array of elements split into two groups, the first of which contains elements predicate returns truthy for, the second of which contains elements predicate returns falsey for. The predicate is invoked with one argument: (value).

Creates an object composed of the picked object properties.

Removes all given values from array using SameValueZero for equality comparisons.

Removes elements from array corresponding to indexes and returns an array of removed elements.

Creates an array of numbers (positive and/or negative) progressing from start up to, but not including, end. A step of -1 is used if a negative start is specified without an end or step. If end is not specified, it's set to start with start then set to 0.

This method is like _.range except that it populates values in descending order.

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.

Computes number rounded to precision.

Converts string to snake case.

Creates an array of elements, sorted in ascending order by the results of running each element in a collection thru each iteratee. This method performs a stable sort, that is, it preserves the original sort order of equal elements. The iteratees are invoked with one argument: (value).

Converts string to start case.

Subtract two numbers.

By default, the template delimiters used by lodash are like those in embedded Ruby (ERB) as well as ES2015 template strings. Change the following template settings to use alternative delimiters.

Creates an array of own enumerable string keyed-value pairs for object which can be consumed by _.fromPairs. If object is a map or set, its entries are returned.

Creates an array of own and inherited enumerable string keyed-value pairs for object which can be consumed by _.fromPairs. If object is a map or set, its entries are returned.

Creates an array of unique values, in order, from all given arrays using SameValueZero for equality comparisons.

This method is like _.union except that it accepts iteratee which is invoked for each element of each arrays to generate the criterion by which uniqueness is computed. Result values are chosen from the first array in which the value occurs. The iteratee is invoked with one argument: (value).

This method is like _.union except that it accepts comparator which is invoked to compare elements of arrays. Result values are chosen from the first array in which the value occurs. The comparator is invoked with two arguments: (arrVal, othVal).

Converts string, as space separated words, to upper case.

Converts the first character of string to upper case.

Creates an array excluding all given values using SameValueZero for equality comparisons.

This method is the wrapper version of _.at.

Creates an array of unique values that is the symmetric difference of the given arrays. The order of result values is determined by the order they occur in the arrays.

This method is like _.xor except that it accepts iteratee which is invoked for each element of each arrays to generate the criterion by which by which they're compared. The order of result values is determined by the order they occur in the arrays. The iteratee is invoked with one argument: (value).

This method is like _.xor except that it accepts comparator which is invoked to compare elements of arrays. The order of result values is determined by the order they occur in the arrays. The comparator is invoked with two arguments: (arrVal, othVal).

Creates an array of grouped elements, the first of which contains the first elements of the given arrays, the second of which contains the second elements of the given arrays, and so on.

This method is like _.zip except that it accepts iteratee to specify how grouped values should be combined. The iteratee is invoked with the elements of each group: (...group).

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.

Converts the first character of string to upper case and the remaining to lower case.

Casts value as an array if it's not one.

Creates a lodash wrapper instance that wraps value with explicit method chain sequences enabled. The result of such sequences must be unwrapped with _#value.

Creates an array of elements split into groups the length of size. If array can't be split evenly, the final chunk will be the remaining elements.

Clamps number within the inclusive lower and upper bounds.

Creates a shallow clone of value.

This method is like _.clone except that it recursively clones value.

This method is like _.cloneWith except that it recursively clones value.

This method is like _.clone except that it accepts customizer which is invoked to produce the cloned value. If customizer returns undefined, cloning is handled by the method instead. The customizer is invoked with up to four arguments; (value [, index|key, object, stack]).

Executes the chain sequence and returns the wrapped result.

Creates an array with all falsey values removed. The values false, null, 0, "", undefined, and NaN are falsey.

Creates a new array concatenating array with any additional arrays and/or values.

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.

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.

Checks if object conforms to source by invoking the predicate properties of source with the corresponding property values of object.

Creates a function that returns value.

Creates an object that inherits from the prototype object. If a properties object is given, its own enumerable string keyed properties are assigned to the created object.

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.

Deburrs string by converting Latin-1 Supplement and Latin Extended-A letters to basic Latin letters and removing combining diacritical marks.

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.

Creates a slice of array with n elements dropped from the beginning.

Creates a slice of array with n elements dropped from the end.

Creates a slice of array excluding elements dropped from the end. Elements are dropped until predicate returns falsey. The predicate is invoked with three arguments: (value, index, array).

Creates a slice of array excluding elements dropped from the beginning. Elements are dropped until predicate returns falsey. The predicate is invoked with three arguments: (value, index, array).

Iterates over elements of collection and invokes iteratee for each element. The iteratee is invoked with three arguments: (value, index|key, collection). Iteratee functions may exit iteration early by explicitly returning false.

This method is like _.forEach except that it iterates over elements of collection from right to left.

Checks if string ends with the given target string.

Performs a SameValueZero comparison between two values to determine if they are equivalent.

Converts the characters "&", "<", ">", '"', and "'" in string to their corresponding HTML entities.

Escapes the RegExp special characters "^", "$", "", ".", "*", "+", "?", "(", ")", "[", "]", "{", "}", and "|" in string.

Checks if predicate returns truthy for all elements of collection. Iteration is stopped once predicate returns falsey. The predicate is invoked with three arguments: (value, index|key, collection).

Fills elements of array with value from start up to, but not including, end.

Iterates over elements of collection, returning an array of all elements predicate returns truthy for. The predicate is invoked with three arguments: (value, index|key, collection).

This method is like _.find except that it returns the index of the first element predicate returns truthy for instead of the element itself.

This method is like _.find except that it returns the key of the first element predicate returns truthy for instead of the element itself.

This method is like _.findIndex except that it iterates over elements of collection from right to left.

This method is like _.findKey except that it iterates over elements of a collection in the opposite order.

Gets the first element of array.

Creates a flattened array of values by running each element in collection thru iteratee and flattening the mapped results. The iteratee is invoked with three arguments: (value, index|key, collection).

This method is like _.flatMap except that it recursively flattens the mapped results.

This method is like _.flatMap except that it recursively flattens the mapped results up to depth times.

Flattens array a single level deep.

Recursively flattens array.

Recursively flatten array up to depth times.

Creates a function that invokes func with arguments reversed.

Iterates over elements of collection and invokes iteratee for each element. The iteratee is invoked with three arguments: (value, index|key, collection). Iteratee functions may exit iteration early by explicitly returning false.

This method is like _.forEach except that it iterates over elements of collection from right to left.

Iterates over own and inherited enumerable string keyed properties of an object and invokes iteratee for each property. The iteratee is invoked with three arguments: (value, key, object). Iteratee functions may exit iteration early by explicitly returning false.

This method is like _.forIn except that it iterates over properties of object in the opposite order.

Iterates over own enumerable string keyed properties of an object and invokes iteratee for each property. The iteratee is invoked with three arguments: (value, key, object). Iteratee functions may exit iteration early by explicitly returning false.

This method is like _.forOwn except that it iterates over properties of object in the opposite order.

The inverse of _.toPairs; this method returns an object composed from key-value pairs.

Creates an array of function property names from own enumerable properties of object.

Creates an array of function property names from own and inherited enumerable properties of object.

Gets the value at path of object. If the resolved value is undefined, the defaultValue is returned in its place.

Checks if path is a direct property of object.

Checks if path is a direct or inherited property of object.

Gets the first element of array.

This method returns the first argument it receives.

Checks if value is in collection. If collection is a string, it's checked for a substring of value, otherwise SameValueZero is used for equality comparisons. If fromIndex is negative, it's used as the offset from the end of collection.

Gets the index at which the first occurrence of value is found in array using SameValueZero for equality comparisons. If fromIndex is negative, it's used as the offset from the end of array.

Gets all but the last element of array.

Checks if n is between start and up to, but not including, end. If end is not specified, it's set to start with start then set to 0. If start is greater than end the params are swapped to support negative ranges.

Checks if value is array-like. A value is considered array-like if it's not a function and has a value.length that's an integer greater than or equal to 0 and less than or equal to Number.MAX_SAFE_INTEGER.

This method is like _.isArrayLike except that it also checks if value is an object.

Checks if value is classified as a boolean primitive or object.

Checks if value is likely a DOM element.

Checks if value is an empty object, collection, map, or set.

Performs a deep comparison between two values to determine if they are equivalent.

This method is like _.isEqual except that it accepts customizer which is invoked to compare values. If customizer returns undefined, comparisons are handled by the method instead. The customizer is invoked with up to six arguments: (objValue, othValue [, index|key, object, other, stack]).

Checks if value is an Error, EvalError, RangeError, ReferenceError, SyntaxError, TypeError, or URIError object.

Checks if value is a finite primitive number.

Checks if value is classified as a Function object.

Checks if value is an integer.

Checks if value is a valid array-like length.

Performs a partial deep comparison between object and source to determine if object contains equivalent property values.

This method is like _.isMatch except that it accepts customizer which is invoked to compare values. If customizer returns undefined, comparisons are handled by the method instead. The customizer is invoked with five arguments: (objValue, srcValue, index|key, object, source).

Checks if value is NaN.

Checks if value is a pristine native function.

Checks if value is null or undefined.

Checks if value is null.

Checks if value is classified as a Number primitive or object.

Checks if value is the language type of Object. (e.g. arrays, functions, objects, regexes, new Number(0), and new String(''))

Checks if value is object-like. A value is object-like if it's not null and has a typeof result of "object".

Checks if value is a plain object, that is, an object created by the Object constructor or one with a [[Prototype]] of null.

Checks if value is a safe integer. An integer is safe if it's an IEEE-754 double precision number which isn't the result of a rounded unsafe integer.

Checks if value is classified as a String primitive or object.

Checks if value is classified as a Symbol primitive or object.

Checks if value is undefined.

Checks if value is classified as a WeakMap object.

Checks if value is classified as a WeakSet object.

Creates a function that invokes func with the arguments of the created function. If func is a property name, the created function returns the property value for a given element. If func is an array or object, the created function returns true for elements that contain the equivalent source properties, otherwise it returns false.

Converts all elements in array into a string separated by separator.

Creates an array of the own enumerable property names of object.

Creates an array of the own and inherited enumerable property names of object.

Gets the last element of array.

This method is like _.indexOf except that it iterates over elements of array from right to left.

Creates a lodash object which wraps value to enable implicit method chain sequences. Methods that operate on and return arrays, collections, and functions can be chained together. Methods that retrieve a single value or may return a primitive value will automatically end the chain sequence and return the unwrapped value. Otherwise, the value must be unwrapped with _#value.

Creates an array of values by running each element in collection thru iteratee. The iteratee is invoked with three arguments: (value, index|key, collection).

The opposite of _.mapValues; this method creates an object with the same values as object and keys generated by running each own enumerable string keyed property of object thru iteratee. The iteratee is invoked with three arguments: (value, key, object).

Creates an object with the same keys as object and values generated by running each own enumerable string keyed property of object thru iteratee. The iteratee is invoked with three arguments: (value, key, object).

Creates a function that performs a partial deep comparison between a given object and source, returning true if the given object has equivalent property values, else false.

Creates a function that performs a partial deep comparison between the value at path of a given object to srcValue, returning true if the object value is equivalent, else false.

Computes the maximum value of array. If array is empty or falsey, undefined is returned.

This method is like _.max except that it accepts iteratee which is invoked for each element in array to generate the criterion by which the value is ranked. The iteratee is invoked with one argument: (value).

Computes the mean of the values in array.

This method is like _.mean except that it accepts iteratee which is invoked for each element in array to generate the value to be averaged. The iteratee is invoked with one argument: (value).

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.

Computes the minimum value of array. If array is empty or falsey, undefined is returned.

This method is like _.min except that it accepts iteratee which is invoked for each element in array to generate the criterion by which the value is ranked. The iteratee is invoked with one argument: (value).

Adds all own enumerable string keyed function properties of a source object to the destination object. If object is a function, then methods are added to its prototype as well.

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.

Gets the next value on a wrapped object following the iterator protocol.

This method returns undefined.

Gets the element at index n of array. If n is negative, the nth element from the end is returned.

Creates a function that gets the argument at index n. If n is negative, the nth argument from the end is returned.

The opposite of _.pickBy; this method creates an object composed of the own and inherited enumerable string keyed properties of object that predicate doesn't return truthy for. The predicate is invoked with two arguments: (value, key).

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.

This method is like _.sortBy except that it allows specifying the sort orders of the iteratees to sort by. If orders is unspecified, all values are sorted in ascending order. Otherwise, specify an order of "desc" for descending or "asc" for ascending sort order of corresponding values.

Pads string on the left and right sides if it's shorter than length. Padding characters are truncated if they can't be evenly divided by length.

Pads string on the right side if it's shorter than length. Padding characters are truncated if they exceed length.

Pads string on the left side if it's shorter than length. Padding characters are truncated if they exceed length.

Converts string to an integer of the specified radix. If radix is undefined or 0, a radix of 10 is used unless value is a hexadecimal, in which case a radix of 16 is used.

Creates an object composed of the object properties predicate returns truthy for. The predicate is invoked with two arguments: (value, key).

Creates a clone of the chain sequence planting value as the wrapped value.

Creates a function that returns the value at path of a given object.

The opposite of _.property; this method creates a function that returns the value at a given path of object.

This method is like _.pull except that it accepts an array of values to remove.

This method is like _.pullAll except that it accepts iteratee which is invoked for each element of array and values to generate the criterion by which they're compared. The iteratee is invoked with one argument: (value).

This method is like _.pullAll except that it accepts comparator which is invoked to compare elements of array to values. The comparator is invoked with two arguments: (arrVal, othVal).

Produces a random number between the inclusive lower and upper bounds. If only one argument is provided a number between 0 and the given number is returned. If floating is true, or either lower or upper are floats, a floating-point number is returned instead of an integer.

Reduces collection to a value which is the accumulated result of running each element in collection thru iteratee, where each successive invocation is supplied the return value of the previous. If accumulator is not given, the first element of collection is used as the initial value. The iteratee is invoked with four arguments: (accumulator, value, index|key, collection).

This method is like _.reduce except that it iterates over elements of collection from right to left.

The opposite of _.filter; this method returns the elements of collection that predicate does not return truthy for.

Removes all elements from array that predicate returns truthy for and returns an array of the removed elements. The predicate is invoked with three arguments: (value, index, array).

Repeats the given string n times.

Replaces matches for pattern in string with replacement.

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

This method is like _.get except that if the resolved value is a function it's invoked with the this binding of its parent object and its result is returned.

Reverses array so that the first element becomes the last, the second element becomes the second to last, and so on.

Gets a random element from collection.

Gets n random elements at unique keys from collection up to the size of collection.

Sets the value at path of object. If a portion of path doesn't exist, it's created. Arrays are created for missing index properties while objects are created for all other missing properties. Use _.setWith to customize path creation.

This method is like _.set except that it accepts customizer which is invoked to produce the objects of path. If customizer returns undefined path creation is handled by the method instead. The customizer is invoked with three arguments: (nsValue, key, nsObject).

Creates an array of shuffled values, using a version of the Fisher-Yates shuffle.

Gets the size of collection by returning its length for array-like values or the number of own enumerable string keyed properties for objects.

Creates a slice of array from start up to, but not including, end.

Checks if predicate returns truthy for any element of collection. Iteration is stopped once predicate returns truthy. The predicate is invoked with three arguments: (value, index|key, collection).

Uses a binary search to determine the lowest index at which value should be inserted into array in order to maintain its sort order.

This method is like _.sortedIndex except that it accepts iteratee which is invoked for value and each element of array to compute their sort ranking. The iteratee is invoked with one argument: (value).

This method is like _.indexOf except that it performs a binary search on a sorted array.

This method is like _.sortedIndex except that it returns the highest index at which value should be inserted into array in order to maintain its sort order.

This method is like _.sortedLastIndex except that it accepts iteratee which is invoked for value and each element of array to compute their sort ranking. The iteratee is invoked with one argument: (value).

This method is like _.lastIndexOf except that it performs a binary search on a sorted array.

This method is like _.uniq except that it's designed and optimized for sorted arrays.

This method is like _.uniqBy except that it's designed and optimized for sorted arrays.

Splits string by separator.

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

Checks if string starts with the given target string.

This method returns a new empty array.

This method returns false.

This method returns a new empty object.

This method returns an empty string.

This method returns true.

Computes the sum of the values in array.

This method is like _.sum except that it accepts iteratee which is invoked for each element in array to generate the value to be summed. The iteratee is invoked with one argument: (value).

Gets all but the first element of array.

Creates a slice of array with n elements taken from the beginning.

Creates a slice of array with n elements taken from the end.

Creates a slice of array with elements taken from the end. Elements are taken until predicate returns falsey. The predicate is invoked with three arguments: (value, index, array).

Creates a slice of array with elements taken from the beginning. Elements are taken until predicate returns falsey. The predicate is invoked with three arguments: (value, index, array).

This method invokes interceptor and returns value. The interceptor is invoked with one argument; (value). The purpose of this method is to "tap into" a method chain sequence in order to modify intermediate results.

Creates a compiled template function that can interpolate data properties in "interpolate" delimiters, HTML-escape interpolated data properties in "escape" delimiters, and execute JavaScript in "evaluate" delimiters. Data properties may be accessed as free variables in the template. If a setting object is given, it takes precedence over _.templateSettings values.

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.

This method is like _.tap except that it returns the result of interceptor. The purpose of this method is to "pass thru" values replacing intermediate results in a method chain sequence.

Invokes the iteratee n times, returning an array of the results of each invocation. The iteratee is invoked with one argument; (index).

Converts value to an array.

Converts value to a finite number.

Converts value to an integer.

Enables the wrapper to be iterable.

Executes the chain sequence to resolve the unwrapped value.

Converts value to an integer suitable for use as the length of an array-like object.

Converts string, as a whole, to lower case just like String#toLowerCase.

Converts value to a number.

Converts value to a property path array.

Converts value to a plain object flattening inherited enumerable string keyed properties of value to own properties of the plain object.

Converts value to a safe integer. A safe integer can be compared and represented correctly.

Converts value to a string. An empty string is returned for null and undefined values. The sign of -0 is preserved.

Converts string, as a whole, to upper case just like String#toUpperCase.

An alternative to _.reduce; this method transforms object to a new accumulator object which is the result of running each of its own enumerable string keyed properties thru iteratee, with each invocation potentially mutating the accumulator object. If accumulator is not provided, a new object with the same [[Prototype]] will be used. The iteratee is invoked with four arguments: (accumulator, value, key, object). Iteratee functions may exit iteration early by explicitly returning false.

Removes leading and trailing whitespace or specified characters from string.

Removes trailing whitespace or specified characters from string.

Removes leading whitespace or specified characters from string.

Truncates string if it's longer than the given maximum string length. The last characters of the truncated string are replaced with the omission string which defaults to "...".

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

The inverse of _.escape; this method converts the HTML entities &amp;, &lt;, &gt;, &quot;, and &#39; in string to their corresponding characters.

Creates a duplicate-free version of an array, using SameValueZero for equality comparisons, in which only the first occurrence of each element is kept. The order of result values is determined by the order they occur in the array.

This method is like _.uniq except that it accepts iteratee which is invoked for each element in array to generate the criterion by which uniqueness is computed. The order of result values is determined by the order they occur in the array. The iteratee is invoked with one argument: (value).

Generates a unique ID. If prefix is given, the ID is appended to it.

This method is like _.uniq except that it accepts comparator which is invoked to compare elements of array. The order of result values is determined by the order they occur in the array.The comparator is invoked with two arguments: (arrVal, othVal).

Removes the property at path of object.

This method is like _.zip except that it accepts an array of grouped elements and creates an array regrouping the elements to their pre-zip configuration.

This method is like _.unzip except that it accepts iteratee to specify how regrouped values should be combined. The iteratee is invoked with the elements of each group: (...group).

This method is like _.set except that accepts updater to produce the value to set. Use _.updateWith to customize path creation. The updater is invoked with one argument: (value).

This method is like _.update except that it accepts customizer which is invoked to produce the objects of path. If customizer returns undefined path creation is handled by the method instead. The customizer is invoked with three arguments: (nsValue, key, nsObject).

Executes the chain sequence to resolve the unwrapped value.

Executes the chain sequence to resolve the unwrapped value.

Creates an array of the own enumerable string keyed property values of object.

Creates an array of the own and inherited enumerable string keyed property values of object.

Splits string into an array of its words.

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.

Creates a lodash wrapper instance with explicit method chain sequences enabled.

Executes the chain sequence and returns the wrapped result.

Creates a lodash object which wraps value to enable implicit method chain sequences. Methods that operate on and return arrays, collections, and functions can be chained together. Methods that retrieve a single value or may return a primitive value will automatically end the chain sequence and return the unwrapped value. Otherwise, the value must be unwrapped with _#value.

Gets the next value on a wrapped object following the iterator protocol.

Creates a clone of the chain sequence planting value as the wrapped value.

This method is the wrapper version of _.reverse.

Enables the wrapper to be iterable.

Executes the chain sequence to resolve the unwrapped value.

This method is like _.fromPairs except that it accepts two arrays, one of property identifiers and one of corresponding values.

This method is like _.zipObject except that it supports property paths.