[API reference](https://evolu.dev/docs/api-reference) › [@evolu/common](https://evolu.dev/docs/api-reference/common) › [BigInt](https://evolu.dev/docs/api-reference/common/BigInt) › isBetweenBigInt

```ts
function isBetweenBigInt(min: bigint, max: bigint): Predicate<bigint>;
```

Defined in: [packages/common/src/BigInt.ts:36](https://github.com/evoluhq/evolu/blob/dd96d79f1dbe9a49fa12ce8e0aa7d3d0177795ca/packages/common/src/BigInt.ts#L36)

Creates a predicate that checks if a BigInt is within a range, inclusive.

### Example

```ts

const isBetween10And20 = isBetweenBigInt(10n, 20n);

assertTrue(isBetween10And20(20n));
assertFalse(isBetween10And20(25n));
```