New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@cuties/array-iteration

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cuties/array-iteration

Cutie extension for JavaScript array iteration methods.

latest
Source
npmnpm
Version
1.1.5
Version published
Maintainers
1
Created
Source

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 ObjectAsync/sync callParameters(default value/description)Representation result
Everyarray.everyarray, iterator((value, index, array) => {})boolean
Filteredarray.filterarray, iterator((value, index, array) => {})array
ForEacharray.slice().forEacharray, iterator((value, index, array) => {})array
FoundIndexarray.findIndexarray, iterator((value, index, array) => {})number
Foundarray.findarray, iterator((value, index, array) => {})value
IndexOfarray.indexOfarray, item, startnumber
LastIndexOfarray.lastIndexOfarray, item, startnumber
Mappedarray.maparray, iterator((value, index, array) => {})array
Reducedarray.reducearray, iterator((total, value, index, array) => {})total
ReducedRightarray.reduceRightarray, iterator((total, value, index, array) => {})total
Somearray.somearray, iterator((value, index, array) => {})boolean

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

Keywords

cutie

FAQs

Package last updated on 11 May 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts