@iterable-iterator/repeat
v1.0.1
Published
Item repetition for JavaScript
Downloads
672
Readme
: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