Akbar30Bill / round-robin-js

Round robin implementation with typescript

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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'

About

Round robin implementation with typescript

License:MIT License


Languages

Language:JavaScript 67.2%Language:TypeScript 32.8%