[Method] Filter through an array and remove empty item as defined in Ext isEmpty
Array
Array<any>
Array results
[Method] Clone a flat array without referencing the previous one
Array The array
Array<any>
Array The clone array
[Method] Checks whether or not the given array contains the specified item
Array The array to check.
Object The item to look for.
boolean
Boolean true if the array contains the item, false otherwise.
[Method] Perform a set difference A B by subtracting all items in array B from array A
Array
Array
Array<any>
Array difference
[Method] Iterates an array or an iterable value and invoke the given callback function for each item
Array/NodeList/Object The value to be iterated. If this argument is not iterable, the callback function is called once.
Function The callback function. If it returns false, the iteration stops and this method returns the current index.
Object The scope (this reference) in which the specified function is executed.
Boolean Reverse the iteration order (loop from the end to the beginning).
boolean
Boolean See description for the fn parameter.
[Method] Removes items from an array
Array The Array on which to replace.
Number The index in the array at which to operate.
Number The number of items to remove at index.
Array<any>
Array The array passed.
[Method] Executes the specified function for each array element until the function returns a falsy value
Array
Function Callback function for each item.
Object Callback function scope.
boolean
Boolean true if no false value is returned by the callback function.
[Method] Creates a new array with all of the elements of this array for which the provided filtering function returns true
Array
Function Callback function for each item.
Object Callback function scope.
Array<any>
Array results
[Method] Recursively flattens into 1 d Array
Array The array to flatten
Array<any>
Array The 1-d array.
[Method] Iterates an array and invoke the given callback function for each item
Array The array to iterate.
Function The callback function.
Object The execution scope (this) in which the specified function is executed.
[Method] Converts a value to an array if it s not already an array returns An empty array if given value is undefined or n
Object The value to convert to an array if it's not already is an array.
Boolean true to clone the given array and return a new reference if necessary.
Array<any>
Array array
[Method] Push an item into the array only if the array doesn t contain it yet
Array The array.
Object The item to include.
[Method] Get the index of the provided item in the given array a supplement for the missing arrayPrototype indexOf in Interne
Array The array to check.
Object The item to look for.
Number The index at which to begin the search.
number
Number The index of item in the array (or -1 if it is not found).
[Method] Inserts items in to an array
Array The Array on which to replace.
Number The index in the array at which to operate.
Array The array of items to insert at index.
Array<any>
Array The array passed.
[Method] Merge multiple arrays into one with unique items that exist in all of the arrays
Array
Array
Array
Array<any>
Array intersect
[Method] Creates a new array with the results of calling a provided function on every element in this array
Array
Function Callback function for each item.
Object Callback function scope.
Array<any>
Array results
[Method] Returns the maximum value in the Array
Array/NodeList The Array from which to select the maximum value.
Function a function to perform the comparison which determines maximization. If omitted the ">" operator will be used. Note: gt = 1; eq = 0; lt = -1
any
Object maxValue The maximum value
[Method] Calculates the mean of all items in the array
Array The Array to calculate the mean value of.
number
Number The mean.
[Method] Merge multiple arrays into one with unique items
Array
Array
Array
Array<any>
Array merged
[Method] Returns the minimum value in the Array
Array/NodeList The Array from which to select the minimum value.
Function a function to perform the comparison which determines minimization. If omitted the "<" operator will be used. Note: gt = 1; eq = 0; lt = -1
any
Object minValue The minimum value.
[Method] Plucks the value of a property from each item in the Array
Array/NodeList The Array of items to pluck the value from.
String The property name to pluck from each element.
Array<any>
Array The value from each item in the Array.
[Method] Removes the specified item from the array if it exists
Array The array.
Object The item to remove.
Array<any>
Array The passed array itself.
[Method] Replaces items in an array
Array The Array on which to replace.
Number The index in the array at which to operate.
Number The number of items to remove at index (can be 0).
Array An array of items to insert at index.
Array<any>
Array The array passed.
[Method] Returns a shallow copy of a part of an array
Array The array (or arguments object).
Number The index at which to begin. Negative values are offsets from the end of the array.
Number The index at which to end. The copied items do not include end. Negative values are offsets from the end of the array. If end is omitted, all items up to the end of the array are copied.
Array<any>
Array The copied piece of the array.
[Method] Executes the specified function for each array element until the function returns a truthy value
Array
Function Callback function for each item.
Object Callback function scope.
boolean
Boolean true if the callback function returns a truthy value.
[Method] Sorts the elements of an Array
Array The array to sort.
Function The comparison function.
Array<any>
Array The sorted array.
[Method] Replaces items in an array
Array The Array on which to replace.
Number The index in the array at which to operate.
Number The number of items to remove at index (can be 0).
Array<any>
Array An array containing the removed items.
[Method] Calculates the sum of all items in the given array
Array The Array to calculate the sum value of.
number
Number The sum.
[Method] Converts any iterable numeric indices and a length property into a true array
Object the iterable object to be turned into a true Array.
Number a zero-based index that specifies the start of extraction.
Number a zero-based index that specifies the end of extraction.
Array<any>
Array
[Method] Merge multiple arrays into one with unique items
Array
Array
Array
Array<any>
Array merged
[Method] Returns a new array with unique items
Array
Array<any>
Array results