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

parallel-iterable

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

parallel-iterable

Traverse several iterables at the same time

latest
Source
npmnpm
Version
3.0.1
Version published
Weekly downloads
10
400%
Maintainers
1
Weekly downloads
 
Created
Source

deep-iterable

Requirements

  • Node >= 6.0.0

Features

  • Traverse several iterables at the same time

Usage

Import

var ParallelIterable = require('parallel-iterable');

Constructor

new ParallelIterable(stop, ...iterables);

Where:

  • stop is a function which determines when to stop

  • ...iterables are ECMAScript iterable objects

Examples

var iterables = [
    'abcdef',
    'ghi',
    'jklmnopqrs',
    'tuvwxyz'
];
var {END_OF_FIRST, END_OF_SOME, END_OF_ALL, FOR_COUNT} = ParallelIterable;
var eofirst = [...new ParallelIterable(END_OF_FIRST, ...iterables)];
var eosome = [...new ParallelIterable(END_OF_SOME, ...iterables)];
var eoall = [...new ParallelIterable(END_OF_ALL, ...iterables)];
var firstfive = [...new ParallelIterable(FOR_COUNT(5), ...iterables)];
console.log({eofirst, eosome, eoall});

Keywords

parallel-iterable

FAQs

Package last updated on 11 Apr 2017

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