ixfx
    Preparing search index...

    Function rangeInclusive

    • Returns a function that yields true if a number is at least min and no greater than max

      const t = rangeInclusive(50, 100);
      t(40); // false
      t(50); // true
      t(60); // true
      t(100); // true
      t(101); // false

      Parameters

      • min: number
      • max: number

      Returns (v: number) => boolean