https://github.com/iterable-iterator/repeat
:repeat: Item repetition for JavaScript
https://github.com/iterable-iterator/repeat
Last synced: about 1 year ago
JSON representation
:repeat: Item repetition for JavaScript
- Host: GitHub
- URL: https://github.com/iterable-iterator/repeat
- Owner: iterable-iterator
- License: agpl-3.0
- Created: 2021-04-30T16:02:00.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2025-04-12T02:11:41.000Z (about 1 year ago)
- Last Synced: 2025-04-12T03:23:02.573Z (about 1 year ago)
- Language: JavaScript
- Homepage: https://iterable-iterator.github.io/repeat
- Size: 2.19 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
:repeat: [@iterable-iterator/repeat](https://iterable-iterator.github.io/repeat)
==
Item repetition for JavaScript.
See [docs](https://iterable-iterator.github.io/repeat/index.html).
> :warning: Depending on your environment, the code may require
> `regeneratorRuntime` to be defined, for instance by importing
> [regenerator-runtime/runtime](https://www.npmjs.com/package/regenerator-runtime).
```js
import {repeat, nrepeat} from '@iterable-iterator/repeat';
repeat("A"); // A A A ...
nrepeat("A", 3); // A A A
```
[](https://raw.githubusercontent.com/iterable-iterator/repeat/main/LICENSE)
[](https://www.npmjs.org/package/@iterable-iterator/repeat)
[](https://github.com/iterable-iterator/repeat/actions/workflows/ci.yml?query=branch:main)
[](https://github.com/iterable-iterator/repeat/network/dependencies)
[](https://github.com/iterable-iterator/repeat/issues)
[](https://www.npmjs.org/package/@iterable-iterator/repeat)
[](https://codeclimate.com/github/iterable-iterator/repeat/issues)
[](https://codeclimate.com/github/iterable-iterator/repeat/trends/churn)
[](https://codecov.io/gh/iterable-iterator/repeat)
[](https://codeclimate.com/github/iterable-iterator/repeat/trends/technical_debt)
[](https://iterable-iterator.github.io/repeat/source.html)
[](https://bundlephobia.com/result?p=@iterable-iterator/repeat)