Add linting

This commit is contained in:
schmelczerandras 2020-08-18 16:52:11 +02:00
commit 40a660b7cb

View file

@ -1,5 +1,4 @@
export const clamp = (value: number, min: number, max: number): number =>
Math.min(max, Math.max(min, value));
export const clamp01 = (value: number): number =>
Math.min(1, Math.max(0, value));
export const clamp01 = (value: number): number => Math.min(1, Math.max(0, value));