Created
November 20, 2020 03:54
-
-
Save nivrith/82a4b306fc5770ec8c39f868adf34a05 to your computer and use it in GitHub Desktop.
Make your own Custom Iterables in JavaScript
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| export class Queue<T> { | |
| constructor(private length: number, private data: T[] = []) {} | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment