Refactor: create src/lib to reflect actual sharing of that code

This commit is contained in:
Paul Frazee 2022-11-22 12:02:31 -06:00
parent e858bb52de
commit c2a39d7c1f
21 changed files with 33 additions and 21 deletions

3
src/lib/numbers.ts Normal file
View file

@ -0,0 +1,3 @@
export function clamp(v: number, min: number, max: number): number {
return Math.min(max, Math.max(min, v))
}