UNPKG

es-toolkit

Version:

A state-of-the-art, high-performance JavaScript utility library with a small bundle size and strong type annotations.

8 lines (5 loc) 147 B
import { getTag } from '../_internal/getTag.mjs'; function isError(value) { return getTag(value) === '[object Error]'; } export { isError };