async-array-prototype

Travis CI Github Build Codacy Badge Codebeat Badge CodeFactor Badge DeepScan grade Analytics

Async Array Methods

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

Visitor stats

GitHub stars GitHub forks GitHub watchers GitHub followers

Code stats

GitHub code size in bytes GitHub repo size GitHub language count GitHub top language GitHub last commit

Usage

First install or download this repository.

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

<script src="https://unpkg.com/async-array-prototype"></script>

Then

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:

Send me your message

Trusted by

  • Duke University brand image
  • Emailio brand image
  • E.ON brand image
  • Kinetik Automotive brand image
  • Robert Ladkani brand image
  • SOD 64 brand image
  • Three11 brand image
  • dmarcian brand image
  • htmlBurger brand image
  • htmlBoutique brand image
  • 2create brand image