is-error
Detect whether a value is an error
Example
var isError = ; console // trueconsole // false
Docs
var bool = isError(maybeErr)
is-error := (maybeErr: Any) => Boolean
isError
returns a boolean. it will detect whether the argument
is an error or not.
Installation
npm install is-error
Tests
npm test
Contributors
- Raynos