Promise

Everyone who has been working with jQuery knows what a promise is, right?
It’s what you get when you run $.get for instance. If you didn’t know that you’re not a real pro. Go learn.

Now, however, you can get a promise in native javascript and I love the fact that they’ve named one function ”race”!

It’s a static function that returns a Promise when the first array of Promise’s supplied as arguments returns a Promise. Promise. 🙂
So it’s a RACE!

I’m not duplicating the internet so check it out yourself @ MDN!