@common-utilities/repeat

A common function composed of function arguments which recursively invoke a callback function based on iterations returning a final value

Usage no npm install needed!

<script type="module">
  import commonUtilitiesRepeat from 'https://cdn.skypack.dev/@common-utilities/repeat';
</script>

README

@common-utilities/repeat 🧰🔁

Typed with TypeScript npm version

Repeat is a common function composed of function arguments which recursively invoke a callback function based on iterations returning a final value.

The repeat function can be used to replace while loops.


Check out the repeat page in the docs. License, MIT