DEV Community

Discussion on: The Proper Way to Write Async Constructors in JavaScript

Collapse
 
momander profile image
Martin Omander

I've needed async constructors in the past, but never found a good way of implementing them. A static factory method seem like an elegant and idiomatic solution. Thanks for sharing!

Collapse
 
dandv profile image
Dan Dascalescu