isBetween method

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

Returns true if this number is between the provided min and max values.

Example: 123.isBetween(100, 200) -> true.

Implementation

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