---
title: "outsideRange(): IR builder function in typeshade/core/ir"
description: "outsideRange, an IR builder function in typeshade/core/ir. Out-of-range predicate: x < lo || x > hi."
url: https://typeshade.dev/api/outsiderange/
language: en
---

# `outsideRange()`

Function in Builtins

Out-of-range predicate: x < lo || x > hi.

`import { outsideRange } from 'typeshade/core/ir'`

The signature, the description and the examples come from the compiler's own source at commit af54ddad5.

## Syntax

```ts
const outsideRange: (
  x: ReadonlyNode<ScalarKey>,
  lo: ReadonlyNode<ScalarKey> | number,
  hi: ReadonlyNode<ScalarKey> | number,
) => Node<"bool">
```

## Parameters

**`x` `ReadonlyNode<ScalarKey>`**

**`lo` `ReadonlyNode<ScalarKey> | number`**

**`hi` `ReadonlyNode<ScalarKey> | number`**

## Return value

`Node<'bool'>`

## Source

[`src/core/ir/node.ts`, line 2492](https://github.com/typeshade/typeshade/blob/af54ddad5/src/core/ir/node.ts#L2492), at commit af54ddad5
