wrap-clamp

A clamp function that wraps the value to be within bounds.

Usage no npm install needed!

<script type="module">
  import wrapClamp from 'https://cdn.skypack.dev/wrap-clamp';
</script>

README

wrap-clamp