# Module: equal

## Table of contents

### Functions

- [default](equal.md#default)

## Functions

### default

▸ **default**(`a`, `b`, `depth?`): `boolean`

Compares two values of any type and returns true if they are the same.

#### Parameters

| Name | Type | Default value | Description |
| :------ | :------ | :------ | :------ |
| `a` | `any` | `undefined` |  |
| `b` | `any` | `undefined` |  |
| `depth?` | `number` | `1` | When provided two collections, this value controls how deeply they should be compared. The default is 1 level deep. |

#### Returns

`boolean`

#### Defined in

[src/equal.js:20](https://github.com/Twipped/js-utils/blob/9c196e3/src/equal.js#L20)
