This repository has been archived on 2026-03-28. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
StasisWarden-Legacy/node_modules/es-toolkit/dist/math/inRange.mjs
T

13 lines
318 B
JavaScript

function inRange(value, minimum, maximum) {
if (maximum == null) {
maximum = minimum;
minimum = 0;
}
if (minimum >= maximum) {
throw new Error('The maximum value must be greater than the minimum value.');
}
return minimum <= value && value < maximum;
}
export { inRange };