[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:33](https://github.com/evoluhq/evolu/blob/e7144e2bbe9069362b62dec1b64a8aa922b8f1b0/packages/common/src/BigInt.ts#L33)

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

### Example

```ts
const isBetween10And20 = isBetweenBigInt(10n, 20n);
console.log(isBetween10And20(15n)); // true
console.log(isBetween10And20(25n)); // false
```