Full threadsktguha·I made a simple clamp function based on this const clamp = (num, min=0,max=100) => Math.min(Math.max(num, min), max)View on HN