#69 : Rename entities
This commit is contained in:
@@ -6,6 +6,5 @@ export const getDistance = (p1, p2) => {
|
||||
}
|
||||
|
||||
export function getValueInRange(min, value, max) {
|
||||
// if (min > max) throw new Error(`min (${min}) should be more than or equal to max (${max})`)
|
||||
return Math.max(min, Math.min(value, max))
|
||||
}
|
||||
Reference in New Issue
Block a user