https://github.com/iterable-iterator/cycle
:juggling_person: Iterable cycling functions for JavaScript
https://github.com/iterable-iterator/cycle
Last synced: 4 months ago
JSON representation
:juggling_person: Iterable cycling functions for JavaScript
- Host: GitHub
- URL: https://github.com/iterable-iterator/cycle
- Owner: iterable-iterator
- License: agpl-3.0
- Created: 2021-04-27T14:06:06.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2024-04-08T22:49:01.000Z (about 1 year ago)
- Last Synced: 2024-04-08T23:47:50.458Z (about 1 year ago)
- Language: JavaScript
- Homepage: https://iterable-iterator.github.io/cycle
- Size: 1.49 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
:juggling_person: [@iterable-iterator/cycle](https://iterable-iterator.github.io/cycle)
==Iterable cycling functions for JavaScript.
See [docs](https://iterable-iterator.github.io/cycle/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 {cycle, ncycle} from '@iterable-iterator/cycle';
cycle( "AB" ) ; // A B A B A B ...
ncycle( "AB" , 3 ) ; // A B A B A Bimport {chain} from '@iterable-iterator/chain';
cycle( chain( [ 0 , 1 , 2 ] , [ 3 , 4 , 5 ] ) ) ; // 0 1 2 3 4 5 0 1 ...
```[](https://raw.githubusercontent.com/iterable-iterator/cycle/main/LICENSE)
[](https://www.npmjs.org/package/@iterable-iterator/cycle)
[](https://github.com/iterable-iterator/cycle/actions/workflows/ci.yml?query=branch:main)
[](https://github.com/iterable-iterator/cycle/network/dependencies)
[](https://github.com/iterable-iterator/cycle/issues)
[](https://www.npmjs.org/package/@iterable-iterator/cycle)[](https://codeclimate.com/github/iterable-iterator/cycle/issues)
[](https://codeclimate.com/github/iterable-iterator/cycle/trends/churn)
[](https://codecov.io/gh/iterable-iterator/cycle)
[](https://codeclimate.com/github/iterable-iterator/cycle/trends/technical_debt)
[](https://iterable-iterator.github.io/cycle/source.html)
[](https://bundlephobia.com/result?p=@iterable-iterator/cycle)