npm package: @promises/-prototype
Description: Prototype is a group of packages of Promises library
Author: Yisrael Eliev
Latest version: 0.5.0



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

**Prototype is a group of packages of Promises library**

## Use

**Module**
```sh
$ npm install --save @promises/-prototype
```
```typescript
import {
 error,
 everyParallel,
 everySeries,
 filterParallel,
 filterSeries,
 finally,
 forEachParallel,
 forEachRightSeries,
 forEachSeries,
 keys,
 mapParallel,
 mapSeries,
 next,
 reduceRightSeries,
 reduceSeries,
 rejectParallel,
 rejectSeries,
 reset,
 sleep,
 someParallel,
 someSeries,
 spread,
 timer,
 toCallback,
 wait
} from '@promises/-prototype';
```

**Browser**
```html
<script src="https://unpkg.com/@promises/-prototype/bundle.umd.min.js"></script>
```
```typescript
let {
 error,
 everyParallel,
 everySeries,
 filterParallel,
 filterSeries,
 finally,
 forEachParallel,
 forEachRightSeries,
 forEachSeries,
 keys,
 mapParallel,
 mapSeries,
 next,
 reduceRightSeries,
 reduceSeries,
 rejectParallel,
 rejectSeries,
 reset,
 sleep,
 someParallel,
 someSeries,
 spread,
 timer,
 toCallback,
 wait
} = P;
```



### Functional programming

**Module**
```sh
$ npm install --save @promises/-prototype
```
```typescript
import {
 __,
 error,
 everyParallel,
 everySeries,
 filterParallel,
 filterSeries,
 finally,
 forEachParallel,
 forEachRightSeries,
 forEachSeries,
 mapParallel,
 mapSeries,
 next,
 reduceRightSeries,
 reduceSeries,
 rejectParallel,
 rejectSeries,
 reset,
 sleep,
 someParallel,
 someSeries,
 toCallback,
 wait
} from '@promises/-prototype/fp';
```

**Browser**
```html
<script src="https://unpkg.com/@promises/-prototype/fp/bundle.umd.min.js"></script>
```
```typescript
let {
 __,
 error,
 everyParallel,
 everySeries,
 filterParallel,
 filterSeries,
 finally,
 forEachParallel,
 forEachRightSeries,
 forEachSeries,
 mapParallel,
 mapSeries,
 next,
 reduceRightSeries,
 reduceSeries,
 rejectParallel,
 rejectSeries,
 reset,
 sleep,
 someParallel,
 someSeries,
 toCallback,
 wait
} = PF;
```



### Wrapper

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

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



## 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).