Item repetition for JavaScript

Usage no npm install needed!

<script type="module">
  import iterableIteratorRepeat from 'https://cdn.skypack.dev/@iterable-iterator/repeat';


:repeat: @iterable-iterator/repeat

Item repetition for JavaScript. See docs.

:warning: Depending on your environment, the code may require regeneratorRuntime to be defined, for instance by importing regenerator-runtime/runtime.

import {repeat, nrepeat} from '@iterable-iterator/repeat';
repeat("A"); // A A A ...
nrepeat("A", 3); // A A A

License Version Tests Dependencies Dev dependencies GitHub issues Downloads

Code issues Code maintainability Code coverage (cov) Code technical debt Documentation Package size