Skip to content

🤹 Iterable cycling functions for JavaScript

License

Notifications You must be signed in to change notification settings

iterable-iterator/cycle

Repository files navigation

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 Bimport{chain}from'@iterable-iterator/chain';cycle(chain([0,1,2],[3,4,5]));// 0 1 2 3 4 5 0 1 ...

LicenseVersionTestsDependenciesGitHub issuesDownloads

Code issuesCode maintainabilityCode coverage (cov)Code technical debtDocumentationPackage size

About

🤹 Iterable cycling functions for JavaScript

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •