Classes
Members
Methods
# filter(callback)
Pass items only when callback returns true.
Parameters:
Name | Type | Description |
---|---|---|
callback |
function that returns true if item must passed. |
# async forEach(callback)
The forEach() method executes a provided function once for each array element
Parameters:
Name | Type | Description |
---|---|---|
callback |
function performs with each input item |
# map(callback)
Transform input items
Parameters:
Name | Type | Description |
---|---|---|
callback |
function that peroform transform operation on input item |
# async reduce(callback, initialValue)
Calls the specified callback function for all the input elements.
The return value of the callback function is the accumulated result,
and is provided as an argument in the next call to the callback function.
Parameters:
Name | Type | Description |
---|---|---|
callback |
A function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the array. | |
initialValue |
initialValue is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument. |
# async toArray()
The toArray() method collect iterator items to array.