<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@essex/toolbox](./toolbox.md) &gt; [DEFAULT\_COMPARE](./toolbox.default_compare.md)

## DEFAULT\_COMPARE() function

Performs numerical comparison

<b>Signature:</b>

```typescript
export declare function DEFAULT_COMPARE<T>(item1: T, item2: T): number;
```

## Parameters

|  Parameter | Type | Description |
|  --- | --- | --- |
|  item1 | T |  |
|  item2 | T |  |

<b>Returns:</b>

number

