(min: number, n: number, max: number)
| 282 | }; |
| 283 | |
| 284 | export const clamp = (min: number, n: number, max: number) => { |
| 285 | return Math.max(min, Math.min(n, max)); |
| 286 | }; |
| 287 | |
| 288 | export const assert = (actual: any, reason: string) => { |
| 289 | if (!actual) { |
no outgoing calls
no test coverage detected