isBetween method

bool isBetween(
  1. num min,
  2. num max
)

Returns whether this number falls within the range min to max, inclusive.

Implementation

bool isBetween(num min, num max) => this >= min && this <= max;