Refactor: create src/lib to reflect actual sharing of that code
This commit is contained in:
parent
e858bb52de
commit
c2a39d7c1f
21 changed files with 33 additions and 21 deletions
3
src/lib/numbers.ts
Normal file
3
src/lib/numbers.ts
Normal file
|
@ -0,0 +1,3 @@
|
|||
export function clamp(v: number, min: number, max: number): number {
|
||||
return Math.min(max, Math.max(min, v))
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue