@iterable-iterator/cycle

1.0.0 • Public • Published

🤹 @iterable-iterator/cycle

Iterable cycling functions for JavaScript. See docs.

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

import {cycle, ncycle} from '@iterable-iterator/cycle';
cycle( "AB" ) ; // A B A B A B ...
ncycle( "AB" , 3 ) ; // A B A B A B

import {chain} from '@iterable-iterator/chain';
cycle( chain( [ 0 , 1 , 2 ] , [ 3 , 4 , 5 ] ) ) ; // 0 1 2 3 4 5 0 1 ...

License Version Tests Dependencies Dev dependencies GitHub issues Downloads

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

Package Sidebar

Install

npm i @iterable-iterator/cycle

Weekly Downloads

44

Version

1.0.0

License

AGPL-3.0

Unpacked Size

514 kB

Total Files

16

Last publish

Collaborators

  • raskat
  • aureooms