# Module: catcher

## Table of contents

### Promises Functions

- [default](catcher.md#default)

## Promises Functions

### default

▸ **default**(`fn`): `void`

Executes the given function immediately. If the function throws or rejects, then
the error is caught and sent to the console.

#### Parameters

| Name | Type |
| :------ | :------ |
| `fn` | `Function` |

#### Returns

`void`

#### Defined in

[src/catcher.js:14](https://github.com/Twipped/js-utils/blob/9c196e3/src/catcher.js#L14)
