Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const CustomError = require('./CustomError')
- const nativeError = new Error('ehqo')
- const myErr = new CustomError('qweqwe')
- console.log(nativeError.isCustomError) // undefined
- console.log(myErr.isCustomError) // true
Add Comment
Please, Sign In to add comment