DEV Community

Cover image for `throw` objects and functions

`throw` objects and functions

Aravind Balla on October 08, 2018

Did you know you could throw objects/functions in Javascript? Objects mean, useful objects for the program to run, not only useful for debugging. H...
Collapse
 
aravindballa profile image
Aravind Balla

That doesn't have a catch. But it handles it in the then part.

github.com/facebook/react/blob/mas...