The value to compare.
The other value to compare.
Returns true
if the values are equivalent, else false
.
This method is like _.clone except that it recursively clones value.
The value to recursively clone.
Returns the deep cloned value.
This method is used to forcefully delay a function and cancel all intermediate redundant calls made within the span of delay. Returns a method that will debounce by expected delay when called.
Method that needs to be debounced
Amount of delay in miliseconds
This function can download a file on user's machine either directly by a url or a blob object.
This method returns an array of given size filled with provided value
Size of the array i.e number of elements in the array
Value that you want to fill in the array
This method searches for an object inside an array of objects based on the object key and expected value then returns its index. Returns -1 if key not found.
Array of objects to search within
Key of the object to be matched
Expected value to be matched
This method is used to parse an object into entries. Works exactly like Object.entries. Object.entries is still not fully supported so consider this a polyfill for the same.
{ key1: value1, key2: value2 } => [ [ key1, value1 ], [ key2, value2 ] ]
Object to be parsed into entries.
This method returns the path from the url. By default it returns the last path i.e last slash part from the URL. If you want you can get any path from URL by passing index from last value param
The url that is entered
The index from last slash in the URL. By default it is the last index.
This method returns the index of the selected tab
Array of tabs object
Selected tab name
This method can be used to check if the variable is empty or not. Returns true if it is empty else false.
Any variable that you want to check if it is empty or not
Returns new object with copied all properties without the ones specified.
source object
properties to omit
Removes values from array using function as predicate. Returns removed values.
This method sorts an Object with key value pairs on the basis of the values. (Check examples for better understanding)
Object with key value pairs with single level hierarchy. (Read remarks)
Sort in descending order or not. Defaults to false. Optional argument.
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).
The array to inspect
The iteratee invoked per element.
Generated using TypeDoc
Performs a deep comparison between two values to determine if they are equivalent.
Note: This method supports comparing arrays, array buffers, booleans, date objects, error objects, maps, numbers,
Object
objects, regexes, sets, strings, symbols, and typed arrays.Object
objects are compared by their own, not inherited, enumerable properties. Functions and DOM nodes are not supported.var object = { 'user': 'fred' }; var other = { 'user': 'fred' };
_.isEqual(object, other); // => true
object === other; // => false