source:
node_modules/es-toolkit/dist/compat/predicate/isError.mjs
| Last change on this file was a762898, checked in by , 5 months ago | |
|---|---|
|
|
| File size: 147 bytes | |
| Line | |
|---|---|
| 1 | import { getTag } from '../_internal/getTag.mjs'; |
| 2 | |
| 3 | function isError(value) { |
| 4 | return getTag(value) === '[object Error]'; |
| 5 | } |
| 6 | |
| 7 | export { isError }; |
Note:
See TracBrowser
for help on using the repository browser.
