@jswork/next-times

Invokes the iteratee function n times.

Usage no npm install needed!

<script type="module">
  import jsworkNextTimes from 'https://cdn.skypack.dev/@jswork/next-times';
</script>

README

next-times

Invokes the iteratee function n times.

version license size download

installation

npm install -S @jswork/next-times

usage

import '@jswork/next-times';

const res = nx.times(3, (index) => {
  return { index };
});

// [ { index: 0 }, { index: 1 }, { index: 2 } ]

license

Code released under the MIT license.