logo

Error

This is a collection of functions for working with errors.

Check if a value is an error

The isError function checks if an unknown value is an error.

import { isError } from '@aracna/core';

// will log true
console.log(isError(new Error()));