DEV Community

loading...

Discussion on: Custom exceptions with JS

Collapse
khuongduybui profile image
Duy K. Bui
if (!exception)
    throw exception();

Did you mean !!exception?