Function to be used in {@link Array.prototype.reduce} as a callback
to make from 2d array simple array
As second parameter in reduce function need to pass []
to collect in
to concatenate with
concatenated array
Function to be used in {@link Array.prototype.reduce} as a callback to group by provided key. As second parameter in reduce function need to pass Reducer.Map() Reducer.ImmutableMap() Or own implementation of MethodMap
objects key to resolve value,to group by it
Groups an array by key resolved from callback. Function to be used in {@link Array.prototype.reduce} as a callback to group by provided function. As second parameter in reduce function need to pass Reducer.Map() Reducer.ImmutableMap() Or own implementation of MethodMap
callback to resolve key,to group by it
Groups an array by key resolved from callback and transform value to put in new grouped array. Function to be used in {@link Array.prototype.reduce} as a callback to group by provided key. As second parameter in reduce function need to pass {@link Reducer.Map()}, {@link Reducer.ImmutableMap()} or own implementation of MethodMap
function to get key, output must be a string by this key an array will be grouped
function to transform array element in grouped array
function to use in Array.reduce
Groups an array by key and transform value to put in new grouped array. Function to be used in {@link Array.prototype.reduce} as a callback to group by provided key. As second parameter in reduce function need to pass {@link Reducer.Map()}, {@link Reducer.ImmutableMap()} or own implementation of MethodMap
of an element in array object to group by it
function to transform array element in grouped array
function to use in Array.reduce
Function to be used in {@link Array.prototype.reduce} as a callback. Finds highest value in array. Array must contain only numbers
highest value in array.
Function to be used in {@link Array.prototype.reduce} as a callback. Finds lowest value in array. Array must contain only numbers
lowest value in array.
Function to be used in {@link Array.prototype.reduce} as a callback. Groups pairs of consecutive elements together and returns them as an array of two values.
Function to be used in {@link Array.prototype.reduce} as a callback. It reduces array in a tuple ([[], []]) with two arrays. First array contains elements, that matches predicate, second array, that does not match. As a second paramter in reduce (callback, initialValue), as an initial value need to pass empty tuple of arrays ([[], []]) Or use Reducer.Partition function to create initial value for it. Predicate is a function that takes current element as a parameter and returns boolean.
predicate function that has a a value current element and returns boolean
function to pass to Array.reduce
Function to be used in {@link Array.prototype.reduce} as a callback. It reduces array in a tuple ([[], []]) with two arrays. First array contains elements, that matches predicate, second array, that does not match. As a second paramter in reduce (callback, initialValue), as an initial value need to pass empty tuple of arrays ([[], []]) Or use Reducer.Partition function to create initial value for it. Predicate is an objects key, that will be coerced to boolean with Boolean constructor (Boolean()).
element key, which value is used to decide in which partition array to add element
function to pass to Array.reduce
Function to be used in {@link Array.prototype.reduce} as a callback. It reduces array in a tuple ([[], []]) with two arrays. First array contains elements, that matches predicate, second array, that does not match. As a second paramter in reduce (callback, initialValue), as an initial value need to pass empty tuple of arrays ([[], []]) Or use Reducer.Partition function to create initial value for it. Predicate is an object, which key and values must match current element. For matching all key-value pairs, element will be placed in first partition array.
object to match key value pairs in current element
function to pass to Array.reduce
Function to be used in {@link Array.prototype.reduce} as a callback. Applies an accumulator function over the current element and returns each intermediate result for accumulation
accumulator function
value
Function to be used in {@link Array.prototype.reduce} as a callback. Finds sum of values in array. Array must contain only numbers
sum of values in array.
Function to be used in {@link Array.prototype.reduce} as a callback to make a Map.
Collects items by key, from callback to {@link MethodMap
callback to get key from value
Function to be used in {@link Array.prototype.reduce} as a callback to make a Map.
Collects items to {@link MethodMap
Function to be used in {@link Array.prototype.reduce} as a callback. Reduces array of objects to one object, There is three merge strategies
Function to be used in {@link Array.prototype.reduce} as a callback. Collects items to object by key from callback. If function resolves key, that already exists it will throw an Error As second parameter in reduce function need to pass {} or Reducer.ImmutableObject()
callback to get key from value
Function to be used in {@link Array.prototype.reduce} as a callback Collects items to object by key from callback. If function resolves key, that already exists it will throw an Error. Second callback is value mapper. As second parameter in reduce function need to pass {} or Reducer.ImmutableObject()
Function to be used in {@link Array.prototype.reduce} as a callback Collects items to object by key from callback. If function resolves key, that already exists it will throw an Error. Second callback is value mapper. As second parameter in reduce function need to pass {} or Reducer.ImmutableObject()
callback to get key from value
callback to merge values with duplicate key
Function to be used in {@link Array.prototype.reduce} as a callback. It does the opposite as Reducer.zip or Reducer.zipAll. It collects from all zipped arrays one arrays, that was before zip. Takes from each nested arrays and element and for each index will collect to new array. The length of and array will be the shortest length of arrays to unzip
function to use in Array.reduce
Function to be used in {@link Array.prototype.reduce} as a callback. Collects two arrays into one array of tuples, two element array([x ,y]). The length of zipped array will be length of shortest array.
array to zip with
array with elements from two arrays as tuples
Function to be used in {@link Array.prototype.reduce} as a callback. Collects two arrays into one array of aggregated objects by provided function. The length of zipped array will be length of shortest array.
array to zip with
function that will combine two elements into one
array with elements from two arrays
Function to be used in {@link Array.prototype.reduce} as a callback. Collects all arrays to arrays of arrays, with elements at being grouped with elements from other arrays by same index. The length of zipped array will be length of shortest array. Almost the same as Reducer.zip, except zipAll accepts multiple array to zip with.
function to use in Array.reduce
Object merging strategy used in {@link Reducer#toMergedObject}
Keys in objects may have duplicates, but values in these key must be equal
Overrides value by duplicated key while merging objects
Keys in objects must be unique
Generated using TypeDoc
Functions to be used in {@link Array.prototype.reduce} as a callback.
https://pavel-surinin.github.io/declarativejs/#/?id=reducers