JS: Promise.race

By Xah Lee. Date: .
work in progress
Promise.race(iterable)

returns a new promise which is settled in the same way as the first passed promise to settle.