npm package: @promises/every-parallel
Description: Every Parallel is package from Promises library
Author: Yisrael Eliev
Latest version: 0.5.0



# @promises/every-parallel
[![Source Code](https://img.shields.io/badge/%3C%2F%3E-source_code-blue.svg)](https://github.com/yisraelx/promises/blob/master/modules/every-parallel)
[![Version](https://img.shields.io/npm/v/@promises/every-parallel.svg)](https://www.npmjs.com/package/@promises/every-parallel)
[![MIT License](https://img.shields.io/npm/l/@promises/every-parallel.svg)](https://github.com/yisraelx/promises/blob/master/LICENSE)
[![Bundle Size](https://img.shields.io/bundlephobia/min/@promises/every-parallel.svg)](https://bundlephobia.com/result?p=@promises/every-parallel)

**Every Parallel is package from Promises library**

## Use

**Module**
```sh
$ npm install --save @promises/every-parallel
```
```typescript
import {
 default as everyParallel
} from '@promises/every-parallel';
```

**Browser**
```html
<script src="https://unpkg.com/@promises/every-parallel/bundle.umd.min.js"></script>
```
```typescript
let {
 everyParallel
} = P;
```


**Examples**
```typescript
 let comparator = (value: any) => {
     return Promise.resolve(Boolean(value))
 };

 let array: any[] = [true, 1, Promise.resolve(null), 'yes'];

 everyParallel(array, comparator).then((result: boolean)=>{
     console.log(result) // result => false
 });
```


### Functional programming

**Module**
```sh
$ npm install --save @promises/every-parallel
```
```typescript
import {
 __,
 default as everyParallel
} from '@promises/every-parallel/fp';
```

**Browser**
```html
<script src="https://unpkg.com/@promises/every-parallel/fp/bundle.umd.min.js"></script>
```
```typescript
let {
 __,
 everyParallel
} = PF;
```


**Examples**
```typescript
 let comparator = (value: any) => {
     return Promise.resolve(Boolean(value))
 };

 let array: any[] = [true, 1, Promise.resolve(null), 'yes'];

 everyParallel(comparator)(Infinity)(array).then((result: boolean)=>{
     console.log(result) // result => false
 });
```


### Wrapper

**Module**
```sh
$ npm install --save @promises/every-parallel
```
```typescript
import Promises from '@promises/core';
import '@promises/every-parallel/add';
```
*Or*
```typescript
import Promises from '@promises/every-parallel/add';
```

**Browser**
```html
<script src="https://unpkg.com/@promises/core/bundle.umd.min.js"></script>
<script src="https://unpkg.com/@promises/every-parallel/add/bundle.umd.min.js"></script>
```
```typescript
let {
 Promises
} = P;
```


**Examples**
```typescript
 let comparator = (value) => {
     return Promises.resolve(Boolean(value))
 };

 let array: any[] = [true, 1, Promises.resolve(null), 'yes'];
 let promises: Promises<any[]> = Promises.resolve(array);

 promises.everyParallel(comparator).then((result: boolean)=>{
     console.log(result) // result => false
 });
```


## Compatibility
These modules are written in typescript and available in ES5 and ES6 standard, the requirements are a global __Promise__ (native or polyfill).

## License
Copyright © 2017 [Yisrael Eliav](https://github.com/yisraelx),
Licensed under the [MIT license](https://github.com/yisraelx/promises/blob/master/LICENSE).