@cuties/array-iteration
Cutie extension for JavaScript array iteration methods.
Last updated a year ago by guseyn .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @cuties/array-iteration 
SYNC missed versions from official npm registry.

cutie-array-iteration

NPM Version Build Status codecov

Cutie for JavaScript array iteration methods. It's based on the Async Tree Pattern.

Examples

You can find examples of using this library in the test directory.

Install

npm install @cuties/array-iteration

Run test

npm test

Run build

npm run build

Usage

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

More powerful async objects for processing collections you can find in cutie-async.

Current Tags

  • 1.1.5                                ...           latest (a year ago)

8 Versions

  • 1.1.5                                ...           a year ago
  • 1.1.4                                ...           a year ago
  • 1.1.3                                ...           a year ago
  • 1.1.2                                ...           2 years ago
  • 1.1.1                                ...           2 years ago
  • 1.1.0                                ...           2 years ago
  • 1.0.1                                ...           2 years ago
  • 1.0.0                                ...           2 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (5)
Dev Dependencies (6)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |