1.0.0 • Published 3 years ago
matching-error v1.0.0
matching-error
Usage
const matchingError = require("matching-error")
try {
something()
} catch (error) {
if (matchingError(error, {errorName: "CustomError", reThrow: true})) {
// Handle error
}
}
1.0.0
3 years ago