@alirezazeynali/round-robin
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

round-robin-js

Round robin implementation with typescript

In javascript

    const {Selector} = require('@alirezazeynali/round-robin')

    const roundRobin = new Selector([1, 2, 3, 4])

    const el = roundRobin.next() // => 1

    // if achive the last index begin from first 

In typescript, you can import like this:

    import {Selector} from '@alirezazeynali/round-robin'

Readme

Keywords

Package Sidebar

Install

npm i @alirezazeynali/round-robin

Weekly Downloads

4

Version

1.0.1

License

ISC

Unpacked Size

6.55 kB

Total Files

11

Last publish

Collaborators

  • alirezazeynali