Skip to content

inRange

Checks if the given number is between zero (0) and the ending number. 0 is inclusive. * Numbers can be negative or positive. * Ending number is exclusive.

Usage

inRange(5, 10); // => true
inRange(-1, 10); // => false
inRange(10, 10); // => false

Installation

Terminal window
npx atmx add helper in-range