{"version":3,"file":"inRange.cjs","names":[],"sources":["../../src/number/inRange.ts"],"sourcesContent":["/**\n * Checks if a number is within the specified range (inclusive).\n *\n * @param n - The number to check.\n * @param options - The inclusive start and end of the range.\n * @returns True if n is between start and end.\n *\n * @example\n *\n * inRange(3, { start: 0, end: 5 }) //=> true\n * inRange(-1, { start: 0, end: 5 }) //=> false\n */\nexport default function inRange(\n  n: number,\n  { start, end }: InRangeOptions,\n): boolean {\n  return n >= start && n <= end;\n}\nexport interface InRangeOptions {\n  /** The inclusive start of the range. */\n  start: number;\n  /** The inclusive end of the range. */\n  end: number;\n}\n"],"mappings":"+FAYA,SAAwB,EACtB,EACA,CAAE,QAAO,OACA,CACT,OAAO,GAAK,GAAS,GAAK,CAC5B"}