NumberExtension extension

Extension on the num? class providing additional functionality related to numbers.

on

Methods

isBetween(num from, num to) → bool

Available on num?, provided by the NumberExtension extension

Method to check if the number falls within a specified range. Returns true if the number is between 'from' and 'to', inclusive; false otherwise.