tcmd: Accordion and popover md elements
This commit is contained in:
1
lib/utils/bulkRound.ts
Normal file
1
lib/utils/bulkRound.ts
Normal file
@@ -0,0 +1 @@
|
||||
export const bulkRound = (...args: number[]): number[] => args.map(n => Math.round(n));
|
2
lib/utils/clamp.ts
Normal file
2
lib/utils/clamp.ts
Normal file
@@ -0,0 +1,2 @@
|
||||
export const clamp = (value: number, min: number, max: number) =>
|
||||
Math.max(Math.min(value, max), min)
|
Reference in New Issue
Block a user