4 lines
155 B
JavaScript
4 lines
155 B
JavaScript
|
import { max as mathMax, min as mathMin } from "./math.js";
|
||
|
export default function within(min, value, max) {
|
||
|
return mathMax(min, mathMin(value, max));
|
||
|
}
|