/laba.solvd-week6

Homework for Laba.solvd nodejs course - Week 6

Primary LanguageTypeScript

Week 6 Homework

Laba.Solvd Nodejs Course

About


Assignment

  1. Realize your own promiseAll function which will work the same way as Promise.all from JS, you can't use Promise.all in your function.
    The Promise.all() static method takes an iterable of promises as input and returns a single Promise. This returned promise fulfills when all of the input's promises fulfill (including when an empty iterable is passed), with an array of the fulfillment values. It rejects when any of the input's promises rejects, with this first rejection reason.
    

Getting Started


Prerequisites

npm install npm@latest -g

Installation

  1. Clone the repo

    git clone https://github.com/Cmoros/laba.solvd-week6.git
  2. Go to the project folder

    cd laba.solvd-week6
  3. Install NPM packages

    npm install

Usage


To Test All:

npm t
  • Test myPromiseDotAll:

     npm run test:promise