Funkcja zacisków JS
// Javascript
const clamp = (number, min, max) =>
Math.max(min, Math.min(number, max));
// Typescript
const clamp = (number: number, min: number, max: number) =>
Math.max(min, Math.min(number, max));
kenan238(life, errors);