Cutie extension for JavaScript array iteration methods.
npm install @cuties/array-iteration


Cutie for JavaScript array iteration methods. It's based on the Async Tree Pattern.
You can find examples of using this library in the test directory.
npm install @cuties/array-iteration
npm test
npm run build
``js`
const {
// Here needed async objects from the table below
} = require('@cuties/cutie-array-iteration');
For more information about parameters in the async objects visit docs.
| Async Object | Async/sync call | Parameters(default value/description) | Representation result |
| ------------- | ----------------| ---------- | --------------------- |
| Every | array.every | array, iterator((value, index, array) => {}) | boolean |Filtered
| | array.filter | array, iterator((value, index, array) => {}) | array |ForEach
| | array.slice().forEach | array, iterator((value, index, array) => {}) | array |FoundIndex
| | array.findIndex | array, iterator((value, index, array) => {}) | number |Found
| | array.find | array, iterator((value, index, array) => {}) | value |IndexOf
| | array.indexOf | array, item, start | number |LastIndexOf
| | array.lastIndexOf | array, item, start | number |Mapped
| | array.map | array, iterator((value, index, array) => {}) | array |Reduced
| | array.reduce | array, iterator((total, value, index, array) => {}) | total |ReducedRight
| | array.reduceRight | array, iterator((total, value, index, array) => {}) | total |Some
| | array.some | array, iterator((value, index, array) => {}) | boolean` |x
More powerful async objects for processing collections you can find in cutie-async.