insideRange()
Function in Builtins
In-range predicate: x >= lo && x <= hi.
import { insideRange } from 'typeshade'
The signature, the description and the examples come from the compiler's own source at commit 26de7be8.
Syntax
const insideRange: ( x: ReadonlyNode<ScalarKey>, lo: ReadonlyNode<ScalarKey> | number, hi: ReadonlyNode<ScalarKey> | number,) => Node<"bool">Parameters
xReadonlyNode<ScalarKey>loReadonlyNode<ScalarKey> | numberhiReadonlyNode<ScalarKey> | number
Return value
Node<'bool'>
Source
src/core/ir/node.ts, line 2789, at commit 26de7be8