You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

601 B

Race

Instructions

Create two functions:

  • race: that works like Promise.race.
  • some: that takes an array of promises or values, and count number. It should return the first count resolved values. Empty arrays or a count of 0 return a promise resolving to undefined.

Code provided

The provided code will be added to your solution, and does not need to be submitted.

Promise.race = undefined

Notions