Re:Better Promises in JavaScript
by everdimension on Monday September 24, 2018 @05:10AM
(#18056098)
IIRC promises already have a `map` method which is synonymous to the `then` method.
[ Parent
| on HN ]
Re:Better Promises in JavaScript
by franciscop on Monday September 24, 2018 @05:58AM
(#18056335)
Not with native promises. You have the Promise.all([...]), which is explained in the article but no .map() AFAIK