An open API service indexing awesome lists of open source software.

https://github.com/scriptex/async-array-prototype

Async array methods in JavaScript
https://github.com/scriptex/async-array-prototype

array-methods async-await async-programming

Last synced: 2 months ago
JSON representation

Async array methods in JavaScript

Awesome Lists containing this project

README

        

[![Travis CI](https://travis-ci.com/scriptex/async-array-prototype.svg?branch=master)](https://travis-ci.com/scriptex/async-array-prototype)
[![Github Build](https://github.com/scriptex/async-array-prototype/workflows/Build/badge.svg)](https://github.com/scriptex/async-array-prototype/actions?query=workflow%3ABuild)
[![Codacy Badge](https://app.codacy.com/project/badge/Grade/34d3d75710534dc6a38c3584a1dcd068)](https://www.codacy.com/gh/scriptex/async-array-prototype/dashboard?utm_source=github.com&utm_medium=referral&utm_content=scriptex/async-array-prototype&utm_campaign=Badge_Grade)
[![Codebeat Badge](https://codebeat.co/badges/d765a4c8-2c0e-44f2-89c3-fa364fdc14e6)](https://codebeat.co/projects/github-com-scriptex-async-array-prototype-master)
[![CodeFactor Badge](https://www.codefactor.io/repository/github/scriptex/async-array-prototype/badge)](https://www.codefactor.io/repository/github/scriptex/async-array-prototype)
[![DeepScan grade](https://deepscan.io/api/teams/3574/projects/5257/branches/40799/badge/grade.svg)](https://deepscan.io/dashboard#view=project&tid=3574&pid=5257&bid=40799)
[![Analytics](https://ga-beacon-361907.ew.r.appspot.com/UA-83446952-1/github.com/scriptex/async-array-prototype/README.md?pixel)](https://github.com/scriptex/async-array-prototype/)

# Async Array Methods

> This repository contains the asynchronous version of most array methods in JavaScript.

## Visitor stats

![GitHub stars](https://img.shields.io/github/stars/scriptex/async-array-prototype?style=social)
![GitHub forks](https://img.shields.io/github/forks/scriptex/async-array-prototype?style=social)
![GitHub watchers](https://img.shields.io/github/watchers/scriptex/async-array-prototype?style=social)
![GitHub followers](https://img.shields.io/github/followers/scriptex?style=social)

## Code stats

![GitHub code size in bytes](https://img.shields.io/github/languages/code-size/scriptex/async-array-prototype)
![GitHub repo size](https://img.shields.io/github/repo-size/scriptex/async-array-prototype?style=plastic)
![GitHub language count](https://img.shields.io/github/languages/count/scriptex/async-array-prototype?style=plastic)
![GitHub top language](https://img.shields.io/github/languages/top/scriptex/async-array-prototype?style=plastic)
![GitHub last commit](https://img.shields.io/github/last-commit/scriptex/async-array-prototype?style=plastic)

## Usage

First install or [download](https://github.com/scriptex/async-array/archive/master.zip) this repository.

```sh
npm i async-array-prototype

# or

yarn add async-array-prototype
```

Then either import the whole package or include a new script tag with `src` pointing to your downloaded and extracted repository.

You can also include the whole package from unpkg.com

```html

```

Then

```javascript
import 'async-array';
```

Once imported, the asyncronous methods are available on the `Array.prototype` and you can use them with any array.

## Methods:

1. Async `every`
2. Async `filter`
3. Async `find`
4. Async `findIndex`
5. Async `forEach`
6. Async `map`
7. Async `some`
8. Async `reduce`

## ES Next

Of course you can live on the edge and use the raw ES7 version of the methods by importing them from the `lib` folder.
This way you will not extend the array prototype and the actual usage is left to you.

## LICENSE

MIT

---


Connect with me:






 



 



 



 



 



 



 



 



 



 



 



---


Support and sponsor my work: